Add missing debug calls to RTM_NEWLINK and RTM_DELLINK

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-10-10 22:53:19 +02:00
parent 0f09c1b0dc
commit 448c6749d6
+2
View File
@@ -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;