diff options
author | Steven Barth <steven@midlink.org> | 2013-05-31 11:27:48 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-05-31 11:27:48 +0200 |
commit | cf2c1eec0dcd49c0b838a97a1e21e712a83b4320 (patch) | |
tree | 0fee587d25f6468a3df5b296ae2bddfc79c317e0 /src/ra.c | |
parent | 2e9e12c3d737a851ae651d7bbfe440b60ff2e0fc (diff) | |
download | odhcp6c-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |