summaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-08-19 12:39:37 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-08-19 12:39:37 +0000
commit911b8e2b5a01b1eb1339055bc85184d953c3d65e (patch)
tree23ac69f94b694f381b95779b6a6ca61567328d17 /usr.sbin/ndp
parente0fa1ba0648a04e0a11a3ca2e2a410e7c1e0c737 (diff)
Entries for broadcast addresses should also be ignored, just like local
entries. ok florian@, mikeb@, henning@
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 1b78be15c62..ee310f3b47f 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ndp.c,v 1.54 2014/08/11 09:47:56 mpi Exp $ */
+/* $OpenBSD: ndp.c,v 1.55 2014/08/19 12:39:36 mpi Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@@ -507,7 +507,7 @@ delete(char *host)
sdl = (struct sockaddr_dl *)(ROUNDUP(sin->sin6_len) + (char *)sin);
if (IN6_ARE_ADDR_EQUAL(&sin->sin6_addr, &sin_m.sin6_addr)) {
if (sdl->sdl_family == AF_LINK && rtm->rtm_flags & RTF_LLINFO) {
- if (rtm->rtm_flags & RTF_LOCAL)
+ if (rtm->rtm_flags & (RTF_LOCAL|RTF_BROADCAST))
return (0);
if (!(rtm->rtm_flags & RTF_GATEWAY))
goto delete;