summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-07-04 11:10:43 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-07-04 11:13:56 +0200
commit94afe3bf59b7ad6f3f7a4d0de609412b88387586 (patch)
tree4c6fccc1420e29d5fdd93cd2b8b3c29470e43599 /src/ndp.c
parent18df6cca092743a07be8e0f05d0a9ef941957b66 (diff)
ndp: fix syslog tracing for netlink neigbor and address events
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ndp.c b/src/ndp.c
index 94b7e96..b4767ea 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -437,7 +437,7 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg)
return NL_SKIP;
inet_ntop(AF_INET6, addr, ipbuf, sizeof(ipbuf));
- syslog(LOG_DEBUG, "Netlink %s %s%%%s", true ? "newaddr" : "deladdr",
+ syslog(LOG_DEBUG, "Netlink %s %s%%%s", add ? "newaddr" : "deladdr",
ipbuf, iface->ifname);
check_addr6_updates(iface);
@@ -478,7 +478,7 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg)
return NL_SKIP;
inet_ntop(AF_INET6, addr, ipbuf, sizeof(ipbuf));
- syslog(LOG_DEBUG, "Netlink %s %s%%%s", true ? "newneigh" : "delneigh",
+ syslog(LOG_DEBUG, "Netlink %s %s%%%s", add ? "newneigh" : "delneigh",
ipbuf, iface->ifname);
if (ndm->ndm_flags & NTF_PROXY) {