X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fndp.c;h=d2fbe07fd515bb5bfd0846853eb06fc4afa5e4e7;hp=7cabc5e69cbbc79b4cd262618062a459bb501610;hb=c5040fea540479b731b040986a9c3a62e34afc37;hpb=df023adafeee1bf48fa1e0cce31e7130f8043dae diff --git a/src/ndp.c b/src/ndp.c index 7cabc5e..d2fbe07 100644 --- a/src/ndp.c +++ b/src/ndp.c @@ -327,8 +327,10 @@ static void check_updates(struct interface *iface) if (change) dhcpv6_ia_postupdate(iface, now); - if (change) + if (change) { + syslog(LOG_DEBUG, "Raising SIGUSR1 due to address change"); raise(SIGUSR1); + } } @@ -360,8 +362,10 @@ static void handle_rtnetlink(_unused void *addr, void *data, size_t len, if (is_route) { // Inform about a change in default route - if (rtm->rtm_dst_len == 0) + if (rtm->rtm_dst_len == 0) { + syslog(LOG_DEBUG, "Raising SIGUSR1 due to default route change"); raise(SIGUSR1); + } continue; }