diff options
| author | 1996-06-10 07:47:07 +0000 | |
|---|---|---|
| committer | 1996-06-10 07:47:07 +0000 | |
| commit | 2be5fe52c8cb692bac0bedd775ae629b11b47098 (patch) | |
| tree | 956a5b0826bb2bc58f2188c0346bd9d0cbb3b4b1 /usr.sbin/tcpdump/print-sl.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-2be5fe52c8cb692bac0bedd775ae629b11b47098.tar.xz wireguard-openbsd-2be5fe52c8cb692bac0bedd775ae629b11b47098.zip | |
sync to latest
Diffstat (limited to 'usr.sbin/tcpdump/print-sl.c')
| -rw-r--r-- | usr.sbin/tcpdump/print-sl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-sl.c b/usr.sbin/tcpdump/print-sl.c index 400e3f98140..bdc746a9c5f 100644 --- a/usr.sbin/tcpdump/print-sl.c +++ b/usr.sbin/tcpdump/print-sl.c @@ -1,5 +1,5 @@ -/* $OpenBSD: print-sl.c,v 1.2 1996/03/04 15:59:36 mickey Exp $ */ -/* $NetBSD: print-sl.c,v 1.5 1995/03/06 19:11:29 mycroft Exp $ */ +/**//* $OpenBSD: print-sl.c,v 1.3 1996/06/10 07:47:47 deraadt Exp $ */ +/* $NetBSD: print-sl.c,v 1.6 1996/05/20 00:41:11 fvdl Exp $ */ /* * Copyright (c) 1989, 1990, 1991, 1993, 1994 @@ -24,7 +24,7 @@ #ifndef lint static char rcsid[] = - "@(#)Header: print-sl.c,v 1.28 94/06/10 17:01:38 mccanne Exp (LBL)"; + "@(#)Header: print-sl.c,v 1.28+ 94/06/10 17:01:38 mccanne Exp (LBL)"; #endif #ifdef CSLIP @@ -130,11 +130,11 @@ sliplink_print(register const u_char *p, register const struct ip *ip, case TYPE_UNCOMPRESSED_TCP: /* - * The connection id is stored in the IP protcol field. + * The connection id is stode in the IP protcol field. * Get it from the link layer since sl_uncompress_tcp() * has restored the IP header copy to IPPROTO_TCP. */ - lastconn = ((struct ip *)&p[SLX_CHDR])->ip_p; + lastconn = ip->ip_p; hlen = ip->ip_hl; hlen += ((struct tcphdr *)&((int *)ip)[hlen])->th_off; lastlen[dir][lastconn] = length - (hlen << 2); |
