From: Hans Dedecker Date: Thu, 19 Dec 2013 15:40:39 +0000 (+0100) Subject: Parse Router Advertisement Hop Limit parameter X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=456288f9af45cf094be4ca8160ff186867dec8ff;p=project%2Fodhcp6c.git Parse Router Advertisement Hop Limit parameter --- diff --git a/src/ra.c b/src/ra.c index ede2d76..bc5b225 100644 --- 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));