summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2019-02-03 18:03:42 +0100
committerHans Dedecker <dedeckeh@gmail.com>2019-02-03 21:13:16 +0100
commitf21a0a7bbc31ff8b519e566087e5b425c39480c6 (patch)
tree4bbba898ff47862f8c46878de58e39242fc269df /src/ndp.c
parentedc5fb0e5af19024fcda8c396eabcb578d0af3f3 (diff)
treewide: align syslog tracing
Use the logical OpenWrt interface name in syslog printing as multiple logical interfaces can be defined on top of the same device Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ndp.c b/src/ndp.c
index 28aaa66..8cae97f 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -270,7 +270,7 @@ static void ping6(struct in6_addr *addr,
char ipbuf[INET6_ADDRSTRLEN];
inet_ntop(AF_INET6, addr, ipbuf, sizeof(ipbuf));
- syslog(LOG_NOTICE, "Pinging for %s%%%s", ipbuf, iface->ifname);
+ syslog(LOG_NOTICE, "Pinging for %s on %s", ipbuf, iface->name);
netlink_setup_route(addr, 128, iface->ifindex, NULL, 128, true);
odhcpd_send(ping_socket, &dest, &iov, 1, iface);
@@ -305,7 +305,7 @@ static void handle_solicit(void *addr, void *data, size_t len,
return; /* Invalid target */
inet_ntop(AF_INET6, &req->nd_ns_target, ipbuf, sizeof(ipbuf));
- syslog(LOG_DEBUG, "Got a NS for %s%%%s", ipbuf, iface->ifname);
+ syslog(LOG_DEBUG, "Got a NS for %s on %s", ipbuf, iface->name);
odhcpd_get_mac(iface, mac);
if (!memcmp(ll->sll_addr, mac, sizeof(mac)))
@@ -324,10 +324,10 @@ static void setup_route(struct in6_addr *addr, struct interface *iface, bool add
char ipbuf[INET6_ADDRSTRLEN];
inet_ntop(AF_INET6, addr, ipbuf, sizeof(ipbuf));
- syslog(LOG_NOTICE, "%s about %s%s%%%s",
+ syslog(LOG_NOTICE, "%s about %s%s on %s",
(add) ? "Learning" : "Forgetting",
iface->learn_routes ? "proxy routing for " : "",
- ipbuf, iface->ifname);
+ ipbuf, iface->name);
if (iface->learn_routes)
netlink_setup_route(addr, 128, iface->ifindex, NULL, 1024, add);
@@ -347,10 +347,10 @@ static void setup_addr_for_relaying(struct in6_addr *addr, struct interface *ifa
bool neigh_add = (c->ndp == MODE_RELAY ? add : false);
if (netlink_setup_proxy_neigh(addr, c->ifindex, neigh_add))
- syslog(LOG_DEBUG, "Failed to %s proxy neighbour entry %s%%%s",
- neigh_add ? "add" : "delete", ipbuf, c->ifname);
+ syslog(LOG_DEBUG, "Failed to %s proxy neighbour entry %s on %s",
+ neigh_add ? "add" : "delete", ipbuf, c->name);
else
- syslog(LOG_DEBUG, "%s proxy neighbour entry %s%%%s",
- neigh_add ? "Added" : "Deleted", ipbuf, c->ifname);
+ syslog(LOG_DEBUG, "%s proxy neighbour entry %s on %s",
+ neigh_add ? "Added" : "Deleted", ipbuf, c->name);
}
}