diff options
| author | 1996-03-04 15:58:52 +0000 | |
|---|---|---|
| committer | 1996-03-04 15:58:52 +0000 | |
| commit | 0cd0aa1a484cfafda4854fc93ed6a98937975928 (patch) | |
| tree | d8f77919abf5ae7f1735049a2876d11ef796d703 /usr.sbin/tcpdump/print-sl.c | |
| parent | Update to the latest LBL release. (diff) | |
| download | wireguard-openbsd-0cd0aa1a484cfafda4854fc93ed6a98937975928.tar.xz wireguard-openbsd-0cd0aa1a484cfafda4854fc93ed6a98937975928.zip | |
Updating to the latest LBL release.
Sun's SKIP support added.
Diffstat (limited to 'usr.sbin/tcpdump/print-sl.c')
| -rw-r--r-- | usr.sbin/tcpdump/print-sl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-sl.c b/usr.sbin/tcpdump/print-sl.c index 582e9037021..400e3f98140 100644 --- a/usr.sbin/tcpdump/print-sl.c +++ b/usr.sbin/tcpdump/print-sl.c @@ -1,3 +1,4 @@ +/* $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 $ */ /* @@ -129,9 +130,11 @@ sliplink_print(register const u_char *p, register const struct ip *ip, case TYPE_UNCOMPRESSED_TCP: /* - * The connection id is stode in the IP protcol field. + * The connection id is stored 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 = ip->ip_p; + lastconn = ((struct ip *)&p[SLX_CHDR])->ip_p; hlen = ip->ip_hl; hlen += ((struct tcphdr *)&((int *)ip)[hlen])->th_off; lastlen[dir][lastconn] = length - (hlen << 2); |
