summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2003-07-09 22:03:15 +0000
committeritojun <itojun@openbsd.org>2003-07-09 22:03:15 +0000
commit85f7599b374a41ec5d11acfae514c94850bbe1e3 (patch)
tree1f5b2bb57030ac7b16fa1c884fd220555bcb3944 /sys/netinet/tcp_output.c
parentopen() is not ANSI; (diff)
downloadwireguard-openbsd-85f7599b374a41ec5d11acfae514c94850bbe1e3.tar.xz
wireguard-openbsd-85f7599b374a41ec5d11acfae514c94850bbe1e3.zip
do not flip ip_len/ip_off in netinet stack. deraadt ok.
(please test, especially PF portion)
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 80c927bc06a..33b0ac36f41 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.57 2003/06/09 07:40:25 itojun Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.58 2003/07/09 22:03:16 itojun Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -1104,7 +1104,7 @@ send:
struct ip *ip;
ip = mtod(m, struct ip *);
- ip->ip_len = m->m_pkthdr.len;
+ ip->ip_len = htons(m->m_pkthdr.len);
ip->ip_ttl = tp->t_inpcb->inp_ip.ip_ttl;
ip->ip_tos = tp->t_inpcb->inp_ip.ip_tos;
#ifdef TCP_ECN