mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
This commit is contained in:
parent
ec0176bbda
commit
057c4aff27
1 changed files with 5 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue