diff options
author | suz <suz@FreeBSD.org> | 2005-10-19 15:58:23 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2005-10-19 15:58:23 +0000 |
commit | fe91d8d38d25c016172341749416c4f164406cc7 (patch) | |
tree | 066e7f71c3546ce1ffe39fcccd8692e9accb9b8f /usr.sbin | |
parent | a74e8eb45ae7a3eaac9ab208c21ed6e22ca9df9f (diff) | |
download | FreeBSD-src-fe91d8d38d25c016172341749416c4f164406cc7.zip FreeBSD-src-fe91d8d38d25c016172341749416c4f164406cc7.tar.gz |
sync with KAME in the following point:
- fixed a bug that "ndp ... proxy" command does not work
Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 1a3b16f..96e8c14 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -884,22 +884,26 @@ rtmsg(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; } #define NEXTADDR(w, s) \ if (rtm->rtm_addrs & (w)) { \ - bcopy((char *)&s, cp, sizeof(s)); cp += sizeof(s);} + bcopy((char *)&s, cp, sizeof(s)); cp += SA_SIZE(&s);} 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: |