Revision 5ee69d11
proto/babel/babel.c | ||
---|---|---|
343 | 343 |
babel_expire_ihu(struct babel_neighbor *nbr) |
344 | 344 |
{ |
345 | 345 |
nbr->txcost = BABEL_INFINITY; |
346 |
nbr->ihu_expiry = 0; |
|
346 | 347 |
} |
347 | 348 |
|
348 | 349 |
static void |
... | ... | |
353 | 354 |
if (nbr->hello_cnt < 16) |
354 | 355 |
nbr->hello_cnt++; |
355 | 356 |
|
356 |
if (!nbr->hello_map) |
|
357 |
if (nbr->hello_map) |
|
358 |
nbr->hello_expiry += nbr->last_hello_int; |
|
359 |
else |
|
357 | 360 |
babel_flush_neighbor(nbr); |
358 | 361 |
} |
359 | 362 |
|
... | ... | |
929 | 932 |
n->next_hello_seqno = seqno+1; |
930 | 933 |
if (n->hello_cnt < 16) n->hello_cnt++; |
931 | 934 |
n->hello_expiry = current_time() + BABEL_HELLO_EXPIRY_FACTOR(interval); |
935 |
n->last_hello_int = interval; |
|
932 | 936 |
} |
933 | 937 |
|
934 | 938 |
static void |
proto/babel/babel.h | ||
---|---|---|
191 | 191 |
u8 hello_cnt; |
192 | 192 |
u16 hello_map; |
193 | 193 |
u16 next_hello_seqno; |
194 |
uint last_hello_int; |
|
194 | 195 |
/* expiry timers */ |
195 | 196 |
btime hello_expiry; |
196 | 197 |
btime ihu_expiry; |
Also available in: Unified diff