Removed wrong(unnecessary) & operators for pointer, in ipsec_hdrsiz_tcp().
This must be one of the reason why connections over IPsec hangs for bigger packets.(which was reported on freebsd-current@freebsd.org) But there still seems to be another bug and the problem is not yet fixed.
This commit is contained in:
parent
79c361bc79
commit
595ad28111
sys/netinet
@ -1239,7 +1239,7 @@ ipsec_hdrsiz_tcp(tp)
|
||||
th = (struct tcphdr *)(ip6 + 1);
|
||||
m->m_pkthdr.len = m->m_len =
|
||||
sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
|
||||
bcopy((caddr_t)&tp->t_template->tt_ipgen, (caddr_t)ip6,
|
||||
bcopy((caddr_t)tp->t_template->tt_ipgen, (caddr_t)ip6,
|
||||
sizeof(struct ip6_hdr));
|
||||
bcopy((caddr_t)&tp->t_template->tt_t, (caddr_t)th,
|
||||
sizeof(struct tcphdr));
|
||||
@ -1250,7 +1250,7 @@ ipsec_hdrsiz_tcp(tp)
|
||||
ip = mtod(m, struct ip *);
|
||||
th = (struct tcphdr *)(ip + 1);
|
||||
m->m_pkthdr.len = m->m_len = sizeof(struct tcpiphdr);
|
||||
bcopy((caddr_t)&tp->t_template->tt_ipgen, (caddr_t)ip,
|
||||
bcopy((caddr_t)tp->t_template->tt_ipgen, (caddr_t)ip,
|
||||
sizeof(struct ip));
|
||||
bcopy((caddr_t)&tp->t_template->tt_t, (caddr_t)th,
|
||||
sizeof(struct tcphdr));
|
||||
|
@ -1239,7 +1239,7 @@ ipsec_hdrsiz_tcp(tp)
|
||||
th = (struct tcphdr *)(ip6 + 1);
|
||||
m->m_pkthdr.len = m->m_len =
|
||||
sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
|
||||
bcopy((caddr_t)&tp->t_template->tt_ipgen, (caddr_t)ip6,
|
||||
bcopy((caddr_t)tp->t_template->tt_ipgen, (caddr_t)ip6,
|
||||
sizeof(struct ip6_hdr));
|
||||
bcopy((caddr_t)&tp->t_template->tt_t, (caddr_t)th,
|
||||
sizeof(struct tcphdr));
|
||||
@ -1250,7 +1250,7 @@ ipsec_hdrsiz_tcp(tp)
|
||||
ip = mtod(m, struct ip *);
|
||||
th = (struct tcphdr *)(ip + 1);
|
||||
m->m_pkthdr.len = m->m_len = sizeof(struct tcpiphdr);
|
||||
bcopy((caddr_t)&tp->t_template->tt_ipgen, (caddr_t)ip,
|
||||
bcopy((caddr_t)tp->t_template->tt_ipgen, (caddr_t)ip,
|
||||
sizeof(struct ip));
|
||||
bcopy((caddr_t)&tp->t_template->tt_t, (caddr_t)th,
|
||||
sizeof(struct tcphdr));
|
||||
|
Loading…
x
Reference in New Issue
Block a user