X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=d35da2e7a08be0ab66072e01190bb640c9d2a652;hb=8e50917e51f7f21c53f9021063670065c8fa06d8;hp=f732d9e8fa52b36f1f2f5d314e94e98967df8851;hpb=b5c20853fcbc081ad950ef2083a4f5c31d6ecb54;p=odhcp6c.git diff --git a/src/odhcp6c.c b/src/odhcp6c.c index f732d9e..d35da2e 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -375,10 +375,9 @@ bool odhcp6c_signal_process(void) { if (do_signal == SIGIO) { do_signal = 0; - bool ra_rtnled = ra_rtnl_process(); bool ra_updated = ra_process(); - if (ra_rtnled || (ra_updated && (bound || allow_slaac_only == 0))) + if (ra_updated && (bound || allow_slaac_only == 0)) script_call("ra-updated"); // Immediate process urgent events else if (ra_updated && !bound && allow_slaac_only > 0) script_delay_call("ra-updated", allow_slaac_only); @@ -460,6 +459,7 @@ void odhcp6c_update_entry_safe(enum odhcp6c_state state, struct odhcp6c_entry *n if (x) { x->valid = new->valid; x->preferred = new->preferred; + x->class = new->class; } else { odhcp6c_add_state(state, new, sizeof(*new)); }