Commit Graph

124 Commits

Author SHA1 Message Date
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
christos 1773ee5638 Add -DLBL_ALIGN to handle architectures that need memory alignment. 1998-02-01 13:46:53 +00:00
bad 0a833b6587 Remove leftovers from last rcsmerge. 1997-12-15 16:23:46 +00:00
msaitoh 39c2acb633 fix typo 1997-11-15 21:01:36 +00:00
lukem c32b6d75d3 ensure sizeof hostname buf for ether_(ntohost|line) is >= MAXHOSTNAMELEN + 1 1997-11-02 14:25:23 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem 47852f1f67 getopt returns -1 not EOF 1997-10-17 13:49:37 +00:00
cjs 5e411157a1 Ugly hack to make this compile without warnings on alpha. 1997-10-13 20:45:40 +00:00
cjs 83c227ec28 If you're going to pass a u_char as an int, cast it first. 1997-10-13 20:44:09 +00:00
cjs 2c695bcd2a Include <string.h> and use proper types for str*() so that this compiles
on the Alpha. Also remove register decl's while I'm here.
1997-10-08 20:25:24 +00:00
christos 0382099526 Revert decrementing the length too early; this was broken before the merge... 1997-10-03 20:38:03 +00:00
christos f9b3c069f3 Import assistance. 1997-10-03 20:04:32 +00:00
christos b03548c3bc Resolved conflicts. 1997-10-03 19:54:07 +00:00
christos f42c6d42a2 Import LBL's tcpdump 3.4a5 1997-10-03 17:24:11 +00:00
christos b94f88cd02 PR/4141: Daniel Hagerty: DTRT with appletalk. 1997-09-26 18:12:35 +00:00
fvdl 87dd567ffa Fix PR 3799, make sure the procedure number is handled as unsigned, to
prevent bad things happening
from Azuma OKAMOTO <lfo@sayori.dais.is.tohoku.ac.jp>
1997-07-18 01:01:33 +00:00
christos 0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
is 00cef679df New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:37:27 +00:00
christos e0d22b9baf Add support for printing RIP-V2 packets. 1996-11-04 21:33:02 +00:00
explorer d77cb628d8 fix where tcpdump lives 1996-09-18 02:48:58 +00:00
cgd 78dab63aec update for changes in libpcap function prototypes (u_long -> u_int32_t) 1996-05-26 23:51:40 +00:00
fvdl 9ba6417ed1 Don't try to print an NFS packet over TCP when there's not enough space
for an RPC header (--> garbage && coredumps).
1996-05-26 18:35:14 +00:00
fvdl 6dacd1c9e2 Oops. Forgot to commit the nfsv2.h -> nfs.h change. 1996-05-23 22:49:53 +00:00
fvdl d65ddbd4e0 Grok NFSv3 packets. Needs a bit of work but is ok for now. Enable dumping
of NFS packets over TCP. Upgrade to 3.0.4 while at it. 3.0.4 fixes previous
fix made to util.c too; 'official' fix applied instead (very minor difference).

Fixes to be sent to maintainers RSN.
1996-05-20 00:41:00 +00:00
mycroft d779242948 Use the correct time zone info; not what the kernel says. (Forward to tcpdump
maintainers.)
1996-05-11 13:18:00 +00:00
christos 8fc36200cd Update to RIP version 2 header. 1995-06-20 23:38:49 +00:00
cgd 39e0ed2fd0 cast pointers to longs, not ints. don't return ptr to local var. 1995-04-24 13:27:39 +00:00
mycroft 3badd510a0 Add files I missed in the merge. 1995-03-07 23:18:35 +00:00
mycroft 1939eb406f Clean up merge, port to NetBSD, and add NetBSD RCS tags. 1995-03-06 19:09:42 +00:00
mycroft 6350556d1f Import LBL tcpdump, version 3.0 patch level 1. 1995-03-06 11:55:03 +00:00
cgd 072431f8af headers, for protos. 1994-12-23 17:05:58 +00:00
cgd d065420b32 specify man pages the new way. 1994-12-22 11:43:15 +00:00
mycroft 1b8d06930c Oops. 1994-04-03 05:19:05 +00:00
mycroft 9ebe8aff36 Don't modify the header in place! 1994-04-03 05:17:11 +00:00
cgd e91fd6be31 typofix from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 07:56:26 +00:00
cgd c3d75b8c31 add -DTCPDUMP_ALIGN to CFLAGS if on a sparc 1994-02-22 04:08:21 +00:00
cgd 0c46a65f1b changes for slip.h 1994-02-10 05:41:44 +00:00
deraadt 659612293f get PPP_HDRLEN from the right place 1994-01-25 05:58:21 +00:00
deraadt fa397dcb09 there is no net/slip.h 1993-12-25 02:28:54 +00:00
deraadt 28a0b47800 link -ll 1993-12-05 01:01:38 +00:00
deraadt 56c9ee826f tcpdump version 2.1.1 by Steve McCanne <mccanne@ee.lbl.gov> 1993-11-14 21:19:50 +00:00