From 74af5c6e4773daae7369dfa7f1e0852f6b048aef Mon Sep 17 00:00:00 2001 From: bg- Date: Thu, 28 Jun 2007 15:16:41 +0000 Subject: [PATCH] * Sprinkle () in boolean expression to aid readability. --- core/net/uaodv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/uaodv.c b/core/net/uaodv.c index 18e61e83b..0108c8cce 100644 --- a/core/net/uaodv.c +++ b/core/net/uaodv.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: uaodv.c,v 1.29 2007/06/28 15:06:56 bg- Exp $ + * $Id: uaodv.c,v 1.30 2007/06/28 15:16:41 bg- Exp $ */ /** @@ -487,7 +487,7 @@ handle_incoming_rerr(void) rt = uaodv_rt_lookup_any(&rm->unreach[0].addr); if(rt != NULL && uip_ipaddr_cmp(&rt->nexthop, uip_udp_sender())) { - if(rm->flags & UAODV_RERR_UNKNOWN || rm->unreach[0].seqno == 0 + if((rm->flags & UAODV_RERR_UNKNOWN) || rm->unreach[0].seqno == 0 || SCMP32(rt->hseqno, ntohl(rm->unreach[0].seqno)) <= 0) { rt->is_bad = 1; if(rm->flags & UAODV_RERR_UNKNOWN) {