summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.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_input.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_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 02866771153..5b8b3270f41 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.131 2003/06/09 07:40:25 itojun Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.132 2003/07/09 22:03:16 itojun Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -519,11 +519,7 @@ tcp_input(struct mbuf *m, ...)
struct tcpiphdr *ti;
ip = mtod(m, struct ip *);
-#if 1
tlen = m->m_pkthdr.len - iphlen;
-#else
- tlen = ((struct ip *)ti)->ip_len;
-#endif
ti = mtod(m, struct tcpiphdr *);
#ifdef TCP_ECN