Added automatic timeouts
This commit is contained in:
parent
2ef8c91bbc
commit
5af2430f95
4 changed files with 47 additions and 12 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route.h,v 1.1 2007/03/15 19:52:51 adamdunkels Exp $
|
||||
* $Id: route.h,v 1.2 2007/03/22 17:34:43 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -48,12 +48,13 @@ struct route_entry {
|
|||
struct route_entry *next;
|
||||
rimeaddr_t dest;
|
||||
rimeaddr_t nexthop;
|
||||
u16_t seqno;
|
||||
u16_t hop_count;
|
||||
u8_t seqno;
|
||||
u8_t hop_count;
|
||||
u8_t time;
|
||||
};
|
||||
|
||||
int route_add(rimeaddr_t *dest, rimeaddr_t *nexthop,
|
||||
u16_t hop_count, u16_t seqno);
|
||||
u8_t hop_count, u8_t seqno);
|
||||
struct route_entry *route_lookup(rimeaddr_t *dest);
|
||||
void route_remove(struct route_entry *e);
|
||||
void route_flush_all(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue