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 ede2d766b244faf290a263cf1296c6c66e5a595e..bc5b225e87b0596bf1e4cde73738bf1ba48053ae 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));