X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fblip%2FICMPResponderP.nc;h=c7a335c8bc09973790467e577ca17f9c378a8e91;hb=2f964a9b81ab74d767477d82cd85a72e2d2366cb;hp=3975c1b46cee1b9d8ab2bf43bbf4700d7cb2bdfd;hpb=8b3ae57cec01f4061280db24da4cc6e89671fc7d;p=tinyos-2.x.git diff --git a/tos/lib/net/blip/ICMPResponderP.nc b/tos/lib/net/blip/ICMPResponderP.nc index 3975c1b4..c7a335c8 100644 --- a/tos/lib/net/blip/ICMPResponderP.nc +++ b/tos/lib/net/blip/ICMPResponderP.nc @@ -222,7 +222,9 @@ module ICMPResponderP { printfUART("beacon seqno: %i my seqno: %i\n", beacon->seqno, nd_seqno); - if (beacon->seqno > nd_seqno || (nd_seqno > 0 && beacon->seqno == 0)) { + if (beacon->seqno > nd_seqno || + (nd_seqno > 0 && beacon->seqno == 0) || + !call IPRouting.hasRoute()) { call IPRouting.reset(); nd_seqno = beacon->seqno; }