From 456288f9af45cf094be4ca8160ff186867dec8ff Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 19 Dec 2013 16:40:39 +0100 Subject: [PATCH] Parse Router Advertisement Hop Limit parameter --- src/ra.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.25.1