diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-15 16:35:27 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-15 16:35:27 -0800 |
commit | 6c8396313db9294711b4faf2a0a4f222e301c012 (patch) | |
tree | 95766d54adf19b689a342bf2866558e9cd616919 /zebra | |
parent | e1cbbba88d95b0d11823157bb6b7fab52bd3d333 (diff) | |
download | quagga-6c8396313db9294711b4faf2a0a4f222e301c012.tar.bz2 quagga-6c8396313db9294711b4faf2a0a4f222e301c012.tar.xz |
Ignore delete address message interface is gone
Kernel can sometimes send delete address messages after
device has been deleted.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/rt_netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index e4ce5acc..daef62e9 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -532,6 +532,9 @@ netlink_interface_addr (struct sockaddr_nl *snl, struct nlmsghdr *h) ifp = if_lookup_by_index (ifa->ifa_index); if (ifp == NULL) { + if (h->nlmsg_type == RTM_DELADDR) + return 0; + zlog_err ("netlink_interface_addr can't find interface by index %d", ifa->ifa_index); return -1; |