mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
Add missing debug calls to RTM_NEWLINK and RTM_DELLINK
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0f09c1b0dc
commit
448c6749d6
1 file changed
+2
@@ -121,6 +121,7 @@ static void nl_link(struct nlmsghdr *nlmsg)
|
|||||||
* New interface has appearad, or interface flags has changed.
|
* New interface has appearad, or interface flags has changed.
|
||||||
* Check ifi_flags here to see if the interface is UP/DOWN
|
* 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) {
|
if (i->ifi_change & IFF_UP) {
|
||||||
snprintf(msg, sizeof(msg), "net/%s/up", ifname);
|
snprintf(msg, sizeof(msg), "net/%s/up", ifname);
|
||||||
|
|
||||||
@@ -141,6 +142,7 @@ static void nl_link(struct nlmsghdr *nlmsg)
|
|||||||
|
|
||||||
case RTM_DELLINK:
|
case RTM_DELLINK:
|
||||||
/* NOTE: Interface has dissapeared, not link down ... */
|
/* NOTE: Interface has dissapeared, not link down ... */
|
||||||
|
_d("%s: Delete link", ifname);
|
||||||
snprintf(msg, sizeof(msg), "net/%s/exist", ifname);
|
snprintf(msg, sizeof(msg), "net/%s/exist", ifname);
|
||||||
cond_clear(msg);
|
cond_clear(msg);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user