summaryrefslogtreecommitdiff
path: root/sys/netiso/tuba_subr.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 06:51:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 06:51:12 +0000
commit4999ff4b43ac2d7fd722821f43575a2d6e6d8798 (patch)
treea59013a98998bd12d51ac3c8c38d676f02b6a99d /sys/netiso/tuba_subr.c
parenta2d742ba04b0e50a993d51980923004ca0f3efde (diff)
from netbsd:
make netinet work on systems where pointers and longs are 64 bits (like the alpha). Biggest problem: IP headers were overlayed with structure which included pointers, and which therefore didn't overlay properly on 64-bit machines. Solution: instead of threading pointers through IP header overlays, add a "queue element" structure to do the threading, and point it at the ip headers.
Diffstat (limited to 'sys/netiso/tuba_subr.c')
-rw-r--r--sys/netiso/tuba_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netiso/tuba_subr.c b/sys/netiso/tuba_subr.c
index 465af6293db..927fea34a12 100644
--- a/sys/netiso/tuba_subr.c
+++ b/sys/netiso/tuba_subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tuba_subr.c,v 1.4 1995/06/13 07:58:24 mycroft Exp $ */
+/* $NetBSD: tuba_subr.c,v 1.5 1995/11/21 01:07:54 cgd Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -326,8 +326,8 @@ tuba_tcpinput(m, src, dst)
ti->ti_src.s_addr = tuba_table[findex]->tc_sum;
else
ti->ti_src.s_addr = tuba_table[findex]->tc_ssum;
- ti->ti_prev = ti->ti_next = 0;
- ti->ti_x1 = 0; ti->ti_pr = ISOPROTO_TCP;
+ bzero(ti->ti_x1, sizeof ti->ti_x1);
+ ti->ti_pr = ISOPROTO_TCP;
ti->ti_len = htons((u_short)tlen);
if (ti->ti_sum = in_cksum(m, m->m_pkthdr.len)) {
tcpstat.tcps_rcvbadsum++;