From 448c6749d6780e1c2be25d4795c9e9d1e1d5abf3 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 10 Oct 2017 22:53:19 +0200 Subject: [PATCH] Add missing debug calls to RTM_NEWLINK and RTM_DELLINK Signed-off-by: Joachim Nilsson --- plugins/netlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/netlink.c b/plugins/netlink.c index 7315f8cf..16e5fbd9 100644 --- a/plugins/netlink.c +++ b/plugins/netlink.c @@ -121,6 +121,7 @@ static void nl_link(struct nlmsghdr *nlmsg) * New interface has appearad, or interface flags has changed. * Check ifi_flags here to see if the interface is UP/DOWN */ + _d("%s: New link, ifi_change 0x%x", ifname, i->ifi_change); if (i->ifi_change & IFF_UP) { snprintf(msg, sizeof(msg), "net/%s/up", ifname); @@ -141,6 +142,7 @@ static void nl_link(struct nlmsghdr *nlmsg) case RTM_DELLINK: /* NOTE: Interface has dissapeared, not link down ... */ + _d("%s: Delete link", ifname); snprintf(msg, sizeof(msg), "net/%s/exist", ifname); cond_clear(msg); break;