This commit is contained in:
maxv 2018-05-19 08:22:58 +00:00
parent a7f3f7dd09
commit 9a39ca57f2
2 changed files with 13 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nd6_nbr.c,v 1.155 2018/05/17 12:07:48 maxv Exp $ */
/* $NetBSD: nd6_nbr.c,v 1.156 2018/05/19 08:22:58 maxv Exp $ */
/* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.155 2018/05/17 12:07:48 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.156 2018/05/19 08:22:58 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@ -164,7 +164,6 @@ nd6_ns_input(struct mbuf *m, int off, int icmp6len)
}
}
if (IN6_IS_ADDR_MULTICAST(&taddr6)) {
nd6log(LOG_INFO, "bad NS target (multicast)\n");
goto bad;

View File

@ -1,4 +1,4 @@
/* $NetBSD: nd6_rtr.c,v 1.142 2018/05/18 21:03:33 maxv Exp $ */
/* $NetBSD: nd6_rtr.c,v 1.143 2018/05/19 08:22:58 maxv Exp $ */
/* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.142 2018/05/18 21:03:33 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.143 2018/05/19 08:22:58 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@ -230,12 +230,6 @@ nd6_ra_input(struct mbuf *m, int off, int icmp6len)
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
struct nd_router_advert *nd_ra;
struct in6_addr saddr6 = ip6->ip6_src;
#if 0
struct in6_addr daddr6 = ip6->ip6_dst;
int flags; /* = nd_ra->nd_ra_flags_reserved; */
int is_managed = ((flags & ND_RA_FLAG_MANAGED) != 0);
int is_other = ((flags & ND_RA_FLAG_OTHER) != 0);
#endif
int mcast = 0;
union nd_opts ndopts;
struct nd_defrouter *dr;
@ -248,9 +242,9 @@ nd6_ra_input(struct mbuf *m, int off, int icmp6len)
ndi = ND_IFINFO(ifp);
/*
* We only accept RAs when
* the system-wide variable allows the acceptance, and the
* per-interface variable allows RAs on the receiving interface.
* We only accept RAs when the system-wide variable allows the
* acceptance, and the per-interface variable allows RAs on the
* receiving interface.
*/
if (!nd6_accepts_rtadv(ndi))
goto freeit;