From 42a952981bbcd4fc0f9d54d5a8e6cdb58ba813f1 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Sun, 20 May 2007 20:08:28 +0000 Subject: [PATCH] bugfix: could not store last seen rreqs --- 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 a8ebff798..f8e6d7497 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.20 2007/05/12 21:04:05 oliverschmidt Exp $ + * $Id: uaodv.c,v 1.21 2007/05/20 20:08:28 fros4943 Exp $ */ /** @@ -101,7 +101,7 @@ fwc_lookup(const uip_ipaddr_t *orig, const u32_t *id) static CC_INLINE void fwc_add(const uip_ipaddr_t *orig, const u32_t *id) { - unsigned n = orig->u8[3] % NFWCACHE; + unsigned n = (orig->u8[2] + orig->u8[3]) % NFWCACHE; fwcache[n].id = *id; fwcache[n].orig = *orig; }