summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2015-09-27 04:54:29 +0000
committermelifaro <melifaro@FreeBSD.org>2015-09-27 04:54:29 +0000
commit4fed811000ba5b64a4b7fba73ed6c0590038ab48 (patch)
treeb8bd529bc94d7864472e3eae47cfdc76698c9f0b /usr.sbin/ndp
parent5d0f31382ff2eb2e0ef0a1e21c6edd686c7132a2 (diff)
downloadFreeBSD-src-4fed811000ba5b64a4b7fba73ed6c0590038ab48.zip
FreeBSD-src-4fed811000ba5b64a4b7fba73ed6c0590038ab48.tar.gz
rtsock requests for deleting interface address lles started to return EPERM
instead of old "ignore-and-return 0" in r287789. This broke arp -da / ndp -cn behavior (they exit on rtsock command failure). Fix this by translating LLE_IFADDR to RTM_PINNED flag, passing it to userland and making arp/ndp ignore these entries in batched delete. MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 4837b06..a14520c 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -649,6 +649,8 @@ again:;
if (rtm->rtm_flags & RTF_CLONED)
delete(host_buf);
#else
+ if (rtm->rtm_flags & RTF_PINNED)
+ continue;
delete(host_buf);
#endif
continue;
OpenPOWER on IntegriCloud