- fixed a bug that we can't send a packet to ipv4mapped ipv6 address
using a udp6 socket without bind(2)ing. - fbsd4/430 reported from the FreeBSD team. - this fix is different from the fix reported in the above PR. i think this better, but we need some test. Obtained from: KAME MFC after: 3 weeks
This commit is contained in:
parent
30cce2ed6b
commit
b115006a67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100132
@ -538,6 +538,8 @@ 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)
|
||||
inp->inp_vflag |= INP_IPV4;
|
||||
inp->in6p_hops = -1; /* use kernel default */
|
||||
inp->in6p_cksum = -1; /* just to be sure */
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user