projects
/
oweals
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9e12c
)
Fix handling of multiple RAs in a row.
author
Steven Barth
<steven@midlink.org>
Fri, 31 May 2013 09:27:48 +0000
(11:27 +0200)
committer
Steven Barth
<steven@midlink.org>
Fri, 31 May 2013 09:27:48 +0000
(11:27 +0200)
The default route-entry was not correctly reinitialized.
Thanks to pmarks-net for the detailed bugreport.
src/ra.c
patch
|
blob
|
history
diff --git
a/src/ra.c
b/src/ra.c
index 7d1ded0199a512eca16828b86d32d75c75b44bab..24c99c5ac16bbad30e4687c57f973c25c8cfc17f 100644
(file)
--- a/
src/ra.c
+++ b/
src/ra.c
@@
-218,6
+218,8
@@
bool ra_process(void)
uint32_t router_valid = ntohs(adv->nd_ra_router_lifetime);
// Parse default route
+ entry.target = any;
+ entry.length = 0;
entry.router = from.sin6_addr;
entry.priority = pref_to_priority(adv->nd_ra_flags_reserved);
if (entry.priority < 0)