summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-tcp.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-03-04 15:59:49 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-03-04 15:59:49 +0000
commit5ebfbc1d3156d4ede9dcc95905ba0ac8dd9a492a (patch)
treef8c3c030695e0f3dab570932b42edabf91463b9d /usr.sbin/tcpdump/print-tcp.c
parentc7c145692f0dc3ba8ff78b5282d0029587e26d68 (diff)
Updating to the latest LBL release.
Sun's SKIP support added.
Diffstat (limited to 'usr.sbin/tcpdump/print-tcp.c')
-rw-r--r--usr.sbin/tcpdump/print-tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-tcp.c b/usr.sbin/tcpdump/print-tcp.c
index 50545d19867..f658dc35fcf 100644
--- a/usr.sbin/tcpdump/print-tcp.c
+++ b/usr.sbin/tcpdump/print-tcp.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: print-tcp.c,v 1.2 1996/03/04 15:59:39 mickey Exp $ */
/* $NetBSD: print-tcp.c,v 1.5 1995/03/06 19:11:33 mycroft Exp $ */
/*
@@ -92,7 +93,7 @@ tcp_print(register const u_char *bp, register int length,
register u_char flags;
register int hlen;
u_short sport, dport, win, urp;
- tcp_seq seq, ack;
+ u_int32 seq, ack;
tp = (struct tcphdr *)bp;
ip = (struct ip *)bp2;
@@ -180,7 +181,7 @@ tcp_print(register const u_char *bp, register int length,
hlen = tp->th_off * 4;
length -= hlen;
if (length > 0 || flags & (TH_SYN | TH_FIN | TH_RST))
- (void)printf(" %lu:%lu(%d)", seq, seq + length, length);
+ (void)printf(" %u:%u(%d)", seq, seq + length, length);
if (flags & TH_ACK)
(void)printf(" ack %u", ack);