diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-07-25 17:40:45 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-07-25 17:40:45 +0000 |
commit | eccb7001eea93b6f78ce07e190eb8f162a7f352d (patch) | |
tree | 7145dd896cf6ecc88290710ad88db0a06897a3bc /sys/netinet6/udp6_usrreq.c | |
parent | 72429e49f5218ce22a5cac7c2fe2fa7383cc0d02 (diff) | |
download | src-eccb7001eea93b6f78ce07e190eb8f162a7f352d.tar.gz src-eccb7001eea93b6f78ce07e190eb8f162a7f352d.zip |
cleanup usage of ip6_mapped_addr_on and ip6_v6only. now,
ip6_mapped_addr_on is unified into ip6_v6only.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=100683
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
-rw-r--r-- | sys/netinet6/udp6_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index 8617d0d39c53..c9fcbcb32a69 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -538,7 +538,7 @@ udp6_attach(struct socket *so, int proto, struct thread *td) return error; inp = (struct inpcb *)so->so_pcb; inp->inp_vflag |= INP_IPV6; - if (ip6_mapped_addr_on) + if (!ip6_v6only) inp->inp_vflag |= INP_IPV4; inp->in6p_hops = -1; /* use kernel default */ inp->in6p_cksum = -1; /* just to be sure */ @@ -627,7 +627,7 @@ udp6_connect(struct socket *so, struct sockaddr *nam, struct thread *td) error = in6_pcbconnect(inp, nam, td); splx(s); if (error == 0) { - if (ip6_mapped_addr_on) { /* should be non mapped addr */ + if (!ip6_v6only) { /* should be non mapped addr */ inp->inp_vflag &= ~INP_IPV4; inp->inp_vflag |= INP_IPV6; } @@ -703,7 +703,7 @@ udp6_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr, } } - if (ip6_mapped_addr_on) { + if (!ip6_v6only) { int hasv4addr; struct sockaddr_in6 *sin6 = 0; |