Parse Router Advertisement Hop Limit parameter
authorHans Dedecker <hans.dedecker@technicolor.com>
Thu, 19 Dec 2013 15:40:39 +0000 (16:40 +0100)
committerHans Dedecker <hans.dedecker@technicolor.com>
Thu, 19 Dec 2013 15:40:39 +0000 (16:40 +0100)
src/ra.c

index ede2d76..bc5b225 100644 (file)
--- a/src/ra.c
+++ b/src/ra.c
@@ -307,6 +307,10 @@ bool ra_process(void)
                entry.preferred = entry.valid;
                changed |= odhcp6c_update_entry(STATE_RA_ROUTE, &entry);
 
+               // Parse hoplimit
+               if (adv->nd_ra_curhoplimit)
+                       update_proc("conf", "hop_limit", adv->nd_ra_curhoplimit);
+
                // Parse ND parameters
                if (ntohl(adv->nd_ra_reachable) <= 3600000)
                        update_proc("neigh", "base_reachable_time_ms", ntohl(adv->nd_ra_reachable));