diff options
author | shin <shin@FreeBSD.org> | 2000-01-15 05:39:28 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-15 05:39:28 +0000 |
commit | 06eb80f7ab295f8d615306f51cc498082ff74418 (patch) | |
tree | 6f8c51540b07428b48b9dd4ebbccebb6d4522049 /sys/netinet | |
parent | a3008c093bf17c020a013b1d1a235b3106199103 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netinet/tcp_subr.c | 4 | ||||
-rw-r--r-- | sys/netinet/tcp_timewait.c | 4 |
2 files changed, 4 insertions, 4 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)); diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 9ab1dbd..66958c2 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.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)); |