summaryrefslogtreecommitdiff
path: root/src/ra.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-05-31 11:27:48 +0200
committerSteven Barth <steven@midlink.org>2013-05-31 11:27:48 +0200
commitcf2c1eec0dcd49c0b838a97a1e21e712a83b4320 (patch)
tree0fee587d25f6468a3df5b296ae2bddfc79c317e0 /src/ra.c
parent2e9e12c3d737a851ae651d7bbfe440b60ff2e0fc (diff)
downloadodhcp6c-cf2c1eec0dcd49c0b838a97a1e21e712a83b4320.tar.gz
Fix handling of multiple RAs in a row.
The default route-entry was not correctly reinitialized. Thanks to pmarks-net for the detailed bugreport.
Diffstat (limited to 'src/ra.c')
-rw-r--r--src/ra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ra.c b/src/ra.c
index 7d1ded0..24c99c5 100644
--- 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)