diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-21 17:07:54 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-21 17:25:47 +0100 |
commit | c5040fea540479b731b040986a9c3a62e34afc37 (patch) | |
tree | f0e5d9b2364f640e9817322faf7e268e7df52e7f /src/ndp.c | |
parent | df023adafeee1bf48fa1e0cce31e7130f8043dae (diff) |
router: add syslog debug tracing for trouble shooting
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ndp.c')
-rw-r--r-- | src/ndp.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; } |