diff options
author | 1999-07-28 05:37:18 +0000 | |
---|---|---|
committer | 1999-07-28 05:37:18 +0000 | |
commit | 2caa2483a0c820c0c22ced2baecde3b29a1f8aaa (patch) | |
tree | f2baef381920e48cd0910888a57fbc5c1290c76e /sys/netinet/tcp_input.c | |
parent | Fix a load of typos (diff) | |
download | wireguard-openbsd-2caa2483a0c820c0c22ced2baecde3b29a1f8aaa.tar.xz wireguard-openbsd-2caa2483a0c820c0c22ced2baecde3b29a1f8aaa.zip |
Moved the m_data/m_len shave of IP and TCP headers back to its original
location, as attempts to do it differently have caused too many problems.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 48657232bbf..6905966ebf4 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.44 1999/07/22 17:14:18 niklas Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.45 1999/07/28 05:37:18 cmetz Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -893,6 +893,12 @@ findpcb: } /* + * Drop TCP, IP headers and TCP options. + */ + m->m_data += iphlen + off; + m->m_len -= iphlen + off; + + /* * Calculate amount of space in receive window, * and then do TCP input processing. * Receive window is amount of space in rcv queue, @@ -1953,13 +1959,6 @@ step6: if (SEQ_GT(tp->rcv_nxt, tp->rcv_up)) tp->rcv_up = tp->rcv_nxt; dodata: /* XXX */ - - /* - * Drop TCP, IP headers and TCP options. - */ - m->m_data += iphlen + off; - m->m_len -= iphlen + off; - /* * Process the segment text, merging it into the TCP sequencing queue, * and arranging for acknowledgment of receipt if necessary. |