Removed instant reaction to packet loss. Previously, a neighbor was dropped if no MAC layer ack was received.

This commit is contained in:
adamdunkels 2010-06-08 19:25:40 +00:00
parent 4a08f545c9
commit 296c828ac2

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: neighbor-info.c,v 1.7 2010/05/25 15:29:51 nvt-se Exp $ * $Id: neighbor-info.c,v 1.8 2010/06/08 19:25:40 adamdunkels Exp $
*/ */
/** /**
* \file * \file
@ -129,12 +129,12 @@ neighbor_info_packet_sent(int status, int numtx)
break; break;
case MAC_TX_ERR: case MAC_TX_ERR:
case MAC_TX_NOACK: case MAC_TX_NOACK:
if(neighbor_attr_has_neighbor(dest)) { /* if(neighbor_attr_has_neighbor(dest)) {
neighbor_attr_remove_neighbor(dest); neighbor_attr_remove_neighbor(dest);
if(subscriber_callback != NULL) { if(subscriber_callback != NULL) {
subscriber_callback(dest, 0, 0); subscriber_callback(dest, 0, 0);
} }
} }*/
default: default:
return; return;
} }
@ -170,3 +170,5 @@ neighbor_info_subscribe(neighbor_info_subscriber_t s)
return 0; return 0;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/* XXX use a list of subscribers? */