Checking for RTF_BROADCAST here makes no sense.
authormpi <mpi@openbsd.org>
Mon, 15 Aug 2016 08:52:03 +0000 (08:52 +0000)
committermpi <mpi@openbsd.org>
Mon, 15 Aug 2016 08:52:03 +0000 (08:52 +0000)
usr.sbin/ndp/ndp.c

index cc16682..4f56eb7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ndp.c,v 1.77 2016/08/05 11:53:23 jca Exp $    */
+/*     $OpenBSD: ndp.c,v 1.78 2016/08/15 08:52:03 mpi Exp $    */
 /*     $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $   */
 
 /*
@@ -512,7 +512,7 @@ delete(char *host)
 
        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|RTF_BROADCAST))
+                       if (rtm->rtm_flags & RTF_LOCAL)
                                return (0);
                        if (!(rtm->rtm_flags & RTF_GATEWAY))
                                goto delete;