Improved parent management: parent neighbor is retained until a better neighbor is found (with 1 ETX less than parent). Don't drop parent neighbors when loop is detected (loops are transient anyway).
This commit is contained in:
parent
d7457bc340
commit
a8d8b6d31d
1 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: collect.h,v 1.15 2010/03/25 08:51:07 adamdunkels Exp $
|
||||
* $Id: collect.h,v 1.16 2010/04/01 10:45:21 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -90,13 +90,13 @@ struct collect_conn {
|
|||
#endif /* COLLECT_CONF_ANNOUNCEMENTS */
|
||||
const struct collect_callbacks *cb;
|
||||
struct ctimer t;
|
||||
struct ctimer retransmission_timer;
|
||||
rimeaddr_t parent;
|
||||
rimeaddr_t last_received_addr;
|
||||
uint16_t rtmetric;
|
||||
uint8_t sending, transmissions, max_rexmits;
|
||||
uint8_t seqno, last_received_seqno;
|
||||
rimeaddr_t last_received_addr;
|
||||
uint8_t eseqno;
|
||||
struct ctimer retransmission_timer;
|
||||
rimeaddr_t current_receiver;
|
||||
uint8_t is_router;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue