Commit Graph

91 Commits

Author SHA1 Message Date
itojun b2ffcc0e07 IPv6 support for sunrpc. from tcpdump.org. 2000-06-10 05:39:16 +00:00
itojun 68706c1c57 support NFS over IPv6. from tcpdump.org 2000-06-10 05:27:27 +00:00
matt a8adcb322c Don't let an llc be dumped twice. 2000-05-28 01:25:20 +00:00
itojun 17023b3e8f style. s/switch(/switch (/. 2000-04-24 13:02:28 +00:00
itojun 65f3c2259e - domain: avoid infinite loop in DNS packet printing.
- isakmp: print CERT and SIG payload.  fix IPsec-AH algorithm type.
- rt6: avoid duplicated IPv6 src/dst.
sync with tcpdump.org.
XXX we need to think about future synchronization with tcpdump.org...
2000-04-24 13:01:23 +00:00
itojun d91c2c728f decode IPv6 packet encapsulated into ppp frame (PPP_IPV6). 2000-04-10 15:24:36 +00:00
itojun e4458d9bed address endian issue. sync with tcpdump.org tree. 2000-04-04 05:44:35 +00:00
itojun 387cae5e16 fix include file path (IPv6 related). 2000-02-06 11:21:45 +00:00
itojun b4d29cbd68 don't try to parse packets with short iphlen.
From: tcpdump.org (bugtraq june 99)
2000-02-03 17:42:01 +00:00
itojun f5507e1557 avoid use of bitfield in packet format definition. it is non-portable
(packing constraint is unknown).
avoid use of u_int8_t bitfield.  it is illegal.
2000-01-02 13:15:53 +00:00
mjl 9d38d8530d Fix typo.:wq 1999-12-28 02:54:51 +00:00
thorpej 9e4b4a03d7 Need <string.h> for memset prototype. 1999-12-11 18:20:27 +00:00
thorpej bc322cb5f0 Fix printf formats; cast pointer diffs to long, and use %ld. 1999-12-11 18:19:20 +00:00
itojun 6baefd92e4 sync with recent KAME.
- more length overflow check for ip6 related parsing
- protocol decode fixes
- add dhcp6 parser

XXX how should we maintain usr.sbin/tcpdump for years to come?
relationship with www.tcpdump.org codebase?
1999-12-10 05:45:07 +00:00
sjg 872404ddf2 avoid warnings from gcc about x possibly being uninitialized 1999-10-11 12:40:12 +00:00
sjg 6c501163d3 missing P in \fP 1999-10-11 12:37:43 +00:00
is a7c7586cf6 First part of ARCnet support.
Matching for anything won't work (as we need to teach the stuff about
variable length link level headers), but printing is fine.
1999-10-05 20:37:21 +00:00
sjg dbb9ca2738 Add printing of TELNET options (with -v) and hex/ascii (-X).
Thanks to Alan Barrett for the simpler hexdump code and testing.
Tested on -current and 1.4.1.
1999-09-30 14:49:12 +00:00
itojun bffdeb20f5 tiny sync with KAME code. 1999-09-04 03:58:13 +00:00
itojun 159487207b add NetBSD RCSID where necessary.
add __RCSID where necessary.
make sure "make lint" does not raise fatal error (print-nfs.c)
1999-09-04 03:36:41 +00:00
itojun a91686b4c9 fix printing of IPv4 first fragment size.
(variable "len" was damaged by chained header onion-peeling code)
1999-08-26 14:52:04 +00:00
itojun 5176eb1966 sync with kame; print IPv6 fragment id more nicely. 1999-08-26 11:16:06 +00:00
itojun 11b205990c improve icmp6 printing on jumbogram case.
sync print-null.c with recent KAME code.
1999-07-26 06:26:58 +00:00
itojun c4c4038edf s/u_short/u_int16_t/ and others (just to be sure) 1999-07-26 06:11:57 +00:00
explorer a3d357795d print ip-proto PIM packets (ip proto 103) 1999-07-25 04:23:21 +00:00
itojun ea6e86754f print "ip6:" when -e is specified for DLT_NULL device. 1999-07-25 00:13:07 +00:00
itojun 0ff82b2f3d fix compilation on alpha. 1999-07-06 13:05:14 +00:00
itojun 5833a5a382 add NetBSD RCS ID where necessary. 1999-07-04 02:57:51 +00:00
itojun e4aa9b3d90 do tcp/udp checksum only if it is IPv4.
TODO: IPv6 tcp/udp pseudo header checksum
1999-07-02 14:51:22 +00:00
itojun c282889c17 Pv6, IPsec, ospf6, ripng, dhcp and other protocols support. 1999-07-02 11:31:28 +00:00
nathanw 42aa7dd2a0 Since this uses memcpy(), we need to pull in string.h to make this compile
on the alpha. Now confirmed working on that platform.
1999-06-25 03:22:35 +00:00
sommerfeld 4b5ec636eb Fix obvious LP64 and aliasing bogons in checksum verification code.
Should fix spurious "bad checksum" errors on alpha, but not yet tested
on that platform.
1999-06-25 03:08:02 +00:00
thorpej 38d9ae6199 Oops, fix a typo in a printf. 1999-05-11 02:56:55 +00:00
thorpej fe124d16bb Add support for the new NetBSD PPP data link types, add some more
PPP definitions, and handle Cisco-format frames that come in off
of sync PPP interfaces.
1999-05-11 02:54:29 +00:00
sommerfe 88201e4f1b Fix PR 7196: bad udp checksum reported when capture barely too short 1999-04-29 21:20:13 +00:00
chopps 1b017ba3a8 fix the cksum routine and parse ESH packets. 1999-04-05 00:58:29 +00:00
itohy 060a955d94 Make it compile on big-endian platforms. 1999-03-25 05:07:34 +00:00
bad d1b189e801 Make this understand Token-Ring.
From Onno van der Linden.
1999-03-23 00:02:24 +00:00
abs 9e3a099478 How I managed to generate bizarre sap packets is one thing, but they did
show up a case where tcpdump tries to access pass the end of a packet.
1999-02-11 07:52:14 +00:00
sommerfe 4b41ddc197 Double-check tcp/udp checksum if we get enough data to do it. 1998-12-18 20:28:54 +00:00
hwr 9e33951d8e Verify mini-header checksum.
Rearange printing of S-flag.
1998-09-30 08:57:01 +00:00
hwr fadc6762f7 Add for packtes of IPPROTO_MOBILE (55). This is yet another
tunneling protocol which is described in RFC2004.
XXX There is no verification of the miniheader checksum at the moment.
1998-09-25 19:10:25 +00:00
matt 08e1d890a4 Changes so that BPF readers will get the data in fddi packet aligned along
normal boundaries.  This makes tcpdump much happier.
1998-09-20 02:36:08 +00:00
msaitoh d06e28b7f7 eliminate duplicated protos 1998-08-17 17:51:54 +00:00
mycroft 3d7514132e const poisoning. 1998-07-26 16:01:12 +00:00
explorer d1c69e189b HAVE_HDLC, not just HDLC 1998-07-25 11:39:53 +00:00
explorer 5aab21dfbb changes to print hdlc framing info 1998-07-25 11:30:43 +00:00
cgd da88f08f26 if you're going to length-check a field before using it, length-check
the field you're actually going to use.  (bp_sname was being checked
instead of bp_file.)
1998-07-08 22:14:10 +00:00
matt 40841db9cc NetBSD uses "normal" bit order for FDDI addresses. 1998-05-24 21:41:30 +00:00
christos cced5db98f Determine endian-ness and define WORDS_BIGENDIAN if appropriate. 1998-02-01 13:48:08 +00:00