summaryrefslogtreecommitdiff
path: root/usr.sbin/ndp/ndp.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2008-05-05 13:53:49 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2008-05-05 13:53:49 +0000
commit897315d8063df24e6908b5115bc040d9afa835cb (patch)
tree85c3f1ea1af25f7cbafb7725bb7148f8bf516799 /usr.sbin/ndp/ndp.c
parent4e9cf11372ed9bb24ad007bc302d50bf6e1b51fd (diff)
don't install a /128 bit net route for 'proxy' ndp entries
and show them with ndp -a, too. from KAME rev 1.121; ok henning
Diffstat (limited to 'usr.sbin/ndp/ndp.c')
-rw-r--r--usr.sbin/ndp/ndp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 0a74e2d1a1a..de2eca71e56 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ndp.c,v 1.39 2007/03/22 15:06:57 itojun Exp $ */
+/* $OpenBSD: ndp.c,v 1.40 2008/05/05 13:53:48 markus Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@@ -862,10 +862,12 @@ rtmsg(int cmd)
rtm->rtm_inits = RTV_EXPIRE;
}
rtm->rtm_flags |= (RTF_HOST | RTF_STATIC);
+#if 0 /* we don't support ipv6addr/128 type proxying. */
if (rtm->rtm_flags & RTF_ANNOUNCE) {
rtm->rtm_flags &= ~RTF_HOST;
rtm->rtm_addrs |= RTA_NETMASK;
}
+#endif
/* FALLTHROUGH */
case RTM_GET:
rtm->rtm_addrs |= RTA_DST;
@@ -876,8 +878,10 @@ rtmsg(int cmd)
NEXTADDR(RTA_DST, sin_m);
NEXTADDR(RTA_GATEWAY, sdl_m);
+#if 0 /* we don't support ipv6addr/128 type proxying. */
memset(&so_mask.sin6_addr, 0xff, sizeof(so_mask.sin6_addr));
NEXTADDR(RTA_NETMASK, so_mask);
+#endif
rtm->rtm_msglen = cp - (char *)&m_rtmsg;
doit: