diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-08-08 16:44:57 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-08-08 16:44:57 +0000 |
| commit | 154425bc366bbfa60e829c28740e8fff6dd73c2f (patch) | |
| tree | 7069fea30267a2f8117fa1966ea3a666e1f0000c /sys/netinet6 | |
| parent | 5e0e27483e44a2a866ee46550f11a0116bd828ce (diff) | |
Notes
Diffstat (limited to 'sys/netinet6')
| -rw-r--r-- | sys/netinet6/ip6_var.h | 1 | ||||
| -rw-r--r-- | sys/netinet6/udp6_usrreq.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_var.h b/sys/netinet6/ip6_var.h index dea9c0705d94..a6c20a3733a4 100644 --- a/sys/netinet6/ip6_var.h +++ b/sys/netinet6/ip6_var.h @@ -260,7 +260,6 @@ extern int ip6_gif_hlim; /* Hop limit for gif encap packet */ extern int ip6_use_deprecated; /* allow deprecated addr as source */ extern int ip6_rr_prune; /* router renumbering prefix * walk list every 5 sec. */ -#define ip6_mapped_addr_on (!ip6_v6only) extern int ip6_v6only; extern struct socket *ip6_mrouter; /* multicast routing daemon */ diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index 5a027af5b0d6..46fed31e90b5 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -534,7 +534,7 @@ udp6_attach(struct socket *so, int proto, struct proc *p) 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 */ @@ -623,7 +623,7 @@ udp6_connect(struct socket *so, struct sockaddr *nam, struct proc *p) error = in6_pcbconnect(inp, nam, p); 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; } @@ -699,7 +699,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; |
