diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-03 16:02:12 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-03 16:02:12 +0100 |
commit | d0d311d62f5d922dba97f0023c068e2bf90e7803 (patch) | |
tree | e18b6915c582e5d82e2e8ba71e537bb43f72845c /src | |
parent | 88c59cb3c12b33449e0b8a57a79dd1d418334061 (diff) |
networkd: add some debug info about notifications we ignore
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-manager.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 07552063ec..e9944973ad 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -240,19 +240,24 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo int r, ifindex; r = sd_rtnl_message_link_get_ifindex(message, &ifindex); - if (r < 0) + if (r < 0) { + log_debug("received RTM_NEWLINK message without valid ifindex"); return 0; + } link = hashmap_get(m->links, &ifindex); - if (!link) + if (!link) { + log_debug("received RTM_NEWLINK message for ifindex we are not tracking (%d)", ifindex); return 0; + } /* only track the status of links we want to manage */ if (link->network) { r = link_update(link, message); if (r < 0) return 0; - } + } else + log_debug("received RTM_NEWLINK message for link we are not managing (%d)", ifindex); return 1; } |