summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2001-06-23 03:21:46 +0000
committerMike Silbersack <silby@FreeBSD.org>2001-06-23 03:21:46 +0000
commit08517d530ee912b55bbbc76e8e622ded40657ce2 (patch)
tree8d364d91b3427e5e39be4b2952a487aee0ba2a8c /sys/netinet/tcp_output.c
parent1d3771386f3bb9559207bd5ea207b95166f1cef8 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index a2a2cf370cb6..2740c726860e 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -632,16 +632,11 @@ send:
m->m_len = hdrlen;
}
m->m_pkthdr.rcvif = (struct ifnet *)0;
- if (tp->t_template == 0)
- panic("tcp_output");
#ifdef INET6
if (isipv6) {
ip6 = mtod(m, struct ip6_hdr *);
th = (struct tcphdr *)(ip6 + 1);
- 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));
+ tcp_fillheaders(tp, ip6, th);
} else
#endif /* INET6 */
{
@@ -649,10 +644,7 @@ send:
ipov = (struct ipovly *)ip;
th = (struct tcphdr *)(ip + 1);
/* this picks up the pseudo header (w/o the length) */
- 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));
+ tcp_fillheaders(tp, ip, th);
}
/*