version 1.22.4.2, 2001/05/09 19:42:58 |
version 1.23, 2000/11/05 17:17:16 |
|
|
/* $NetBSD$ */ |
/* $NetBSD$ */ |
/* $KAME: nd6_nbr.c,v 1.51 2001/01/20 17:27:00 itojun Exp $ */ |
/* $KAME: nd6_nbr.c,v 1.36 2000/05/17 12:35:59 jinmei Exp $ */ |
|
|
/* |
/* |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
Line 105 nd6_ns_input(m, off, icmp6len) |
|
Line 105 nd6_ns_input(m, off, icmp6len) |
|
struct sockaddr_dl *proxydl = NULL; |
struct sockaddr_dl *proxydl = NULL; |
|
|
if (ip6->ip6_hlim != 255) { |
if (ip6->ip6_hlim != 255) { |
nd6log((LOG_ERR, |
log(LOG_ERR, |
"nd6_ns_input: invalid hlim %d\n", ip6->ip6_hlim)); |
"nd6_ns_input: invalid hlim %d\n", ip6->ip6_hlim); |
goto freeit; |
goto freeit; |
} |
} |
|
|
Line 119 nd6_ns_input(m, off, icmp6len) |
|
Line 119 nd6_ns_input(m, off, icmp6len) |
|
&& daddr6.s6_addr8[12] == 0xff) { |
&& daddr6.s6_addr8[12] == 0xff) { |
; /*good*/ |
; /*good*/ |
} else { |
} else { |
nd6log((LOG_INFO, "nd6_ns_input: bad DAD packet " |
log(LOG_INFO, "nd6_ns_input: bad DAD packet " |
"(wrong ip6 dst)\n")); |
"(wrong ip6 dst)\n"); |
goto bad; |
goto bad; |
} |
} |
} |
} |
Line 493 nd6_ns_output(ifp, daddr6, taddr6, ln, d |
|
Line 493 nd6_ns_output(ifp, daddr6, taddr6, ln, d |
|
|
|
#ifdef IPSEC |
#ifdef IPSEC |
/* Don't lookup socket */ |
/* Don't lookup socket */ |
(void)ipsec_setsocket(m, NULL); |
ipsec_setsocket(m, NULL); |
#endif |
#endif |
ip6_output(m, NULL, NULL, dad ? IPV6_DADOUTPUT : 0, &im6o, &outif); |
ip6_output(m, NULL, NULL, dad ? IPV6_DADOUTPUT : 0, &im6o, &outif); |
if (outif) { |
if (outif) { |
Line 539 nd6_na_input(m, off, icmp6len) |
|
Line 539 nd6_na_input(m, off, icmp6len) |
|
union nd_opts ndopts; |
union nd_opts ndopts; |
|
|
if (ip6->ip6_hlim != 255) { |
if (ip6->ip6_hlim != 255) { |
nd6log((LOG_ERR, |
log(LOG_ERR, |
"nd6_na_input: invalid hlim %d\n", ip6->ip6_hlim)); |
"nd6_na_input: invalid hlim %d\n", ip6->ip6_hlim); |
goto freeit; |
goto freeit; |
} |
} |
|
|
Line 913 nd6_na_output(ifp, daddr6, taddr6, flags |
|
Line 913 nd6_na_output(ifp, daddr6, taddr6, flags |
|
|
|
#ifdef IPSEC |
#ifdef IPSEC |
/* Don't lookup socket */ |
/* Don't lookup socket */ |
(void)ipsec_setsocket(m, NULL); |
ipsec_setsocket(m, NULL); |
#endif |
#endif |
ip6_output(m, NULL, NULL, 0, &im6o, &outif); |
ip6_output(m, NULL, NULL, 0, &im6o, &outif); |
if (outif) { |
if (outif) { |
Line 931 nd6_ifptomac(ifp) |
|
Line 931 nd6_ifptomac(ifp) |
|
case IFT_ARCNET: |
case IFT_ARCNET: |
case IFT_ETHER: |
case IFT_ETHER: |
case IFT_FDDI: |
case IFT_FDDI: |
|
case IFT_IEEE1394: |
return LLADDR(ifp->if_sadl); |
return LLADDR(ifp->if_sadl); |
break; |
break; |
default: |
default: |