summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-01-15 05:39:28 +0000
committershin <shin@FreeBSD.org>2000-01-15 05:39:28 +0000
commit06eb80f7ab295f8d615306f51cc498082ff74418 (patch)
tree6f8c51540b07428b48b9dd4ebbccebb6d4522049 /sys/netinet/tcp_subr.c
parenta3008c093bf17c020a013b1d1a235b3106199103 (diff)
downloadFreeBSD-src-06eb80f7ab295f8d615306f51cc498082ff74418.zip
FreeBSD-src-06eb80f7ab295f8d615306f51cc498082ff74418.tar.gz
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.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 9ab1dbd..66958c2 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -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));
OpenPOWER on IntegriCloud