summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-07-24 18:46:19 +0000
committerwollman <wollman@FreeBSD.org>1996-07-24 18:46:19 +0000
commit730d9ea60bbd736aa6e38d5414dbd231e32a2605 (patch)
tree6de727402c507fdf97751e5ba908730627692104 /sys/netinet/tcp_timewait.c
parentad62df628f65fd31e61eee95b88b1a34274632d9 (diff)
downloadFreeBSD-src-730d9ea60bbd736aa6e38d5414dbd231e32a2605.zip
FreeBSD-src-730d9ea60bbd736aa6e38d5414dbd231e32a2605.tar.gz
Eliminate some more references to separate ip_v and ip_hl fields.
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 09ae868..d8bde27 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.29 1996/06/05 16:57:37 wollman Exp $
+ * $Id: tcp_subr.c,v 1.30 1996/06/14 17:17:32 wollman Exp $
*/
#include <sys/param.h>
@@ -50,6 +50,7 @@
#include <net/route.h>
#include <net/if.h>
+#define _IP_VHL
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
@@ -466,7 +467,8 @@ tcp_ctlinput(cmd, sa, vip)
((unsigned)cmd > PRC_NCMDS || inetctlerrmap[cmd] == 0))
return;
if (ip) {
- th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
+ th = (struct tcphdr *)((caddr_t)ip
+ + (IP_VHL_HL(ip->ip_vhl) << 2));
in_pcbnotify(&tcb, sa, th->th_dport, ip->ip_src, th->th_sport,
cmd, notify);
} else
OpenPOWER on IntegriCloud