summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-15 16:35:27 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-15 16:35:27 -0800
commit6c8396313db9294711b4faf2a0a4f222e301c012 (patch)
tree95766d54adf19b689a342bf2866558e9cd616919 /zebra
parente1cbbba88d95b0d11823157bb6b7fab52bd3d333 (diff)
downloadquagga-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.c3
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;