Commit Graph

54 Commits

Author SHA1 Message Date
Bill Fenner
93b99d6264 In TTEST2(), check to make sure the "l" argument isn't so large that
"snapend - l" underflows; this fixes a buffer overflow with malformed
NFS packets, and may fix other buffer overflows with malformed packets.

Obtained from:	tcpdump.org CVS
2002-06-17 15:26:56 +00:00
Julian Elischer
f1f9d42a53 Quick hack to print out the non-standard pppoe used by 3com 2001-09-27 08:02:27 +00:00
Bill Fenner
d73c3f4796 Merge tcpdump 3.6.3 2001-07-23 23:15:44 +00:00
Bill Fenner
669c0adba2 This commit was generated by cvs2svn to compensate for changes in r80231,
which included commits to RCS files with non-trunk default branches.
2001-07-23 23:15:13 +00:00
Bill Fenner
39eaefddae Virgin import of tcpdump.org tcpdump v3.6.3 2001-07-23 23:15:13 +00:00
Bill Fenner
7e9c480713 Check in the diff for rev 1.11 of tcpdump.org's print-smb.c
to replace freebsd.org's rev 1.2.
2001-04-04 00:11:06 +00:00
Bill Fenner
84c29ae3c4 This commit was generated by cvs2svn to compensate for changes in r75147,
which included commits to RCS files with non-trunk default branches.
2001-04-04 00:11:06 +00:00
Bill Fenner
943ee2b15a Merge tcpdump 3.6.2 2001-04-03 07:50:46 +00:00
Bill Fenner
685295f4d7 Virgin import of tcpdump.org tcpdump v3.6.2 2001-04-03 07:45:48 +00:00
Bill Fenner
4df395f42e This commit was generated by cvs2svn to compensate for changes in r75115,
which included commits to RCS files with non-trunk default branches.
2001-04-03 07:45:48 +00:00
Kris Kennaway
7524a0790d * Buffer-safe string function cleanup. There are a couple of strcpy()
and strcat()s which would be more difficult to fix, but I think they're
  safe anyway.
* Don't crash at runtime by overflowing a buffer with constant data in
  print-icmp.c on a long hostname.
* Don't overflow a static buffer by trying to decode an AFS ACL into a buffer
  which is way too small for it.

Reviewed by:    -audit
2000-10-05 02:49:49 +00:00
Bill Fenner
bb1ba4173a Include ip6.h from <netinet/>, not <netinet6/>.
Submitted by:	Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
Approved by:	jkh
2000-03-08 02:24:10 +00:00
Bill Fenner
9537d84e80 Fix nybble-order bug in PIM printer.
Approved by:	jkh
2000-02-17 03:30:04 +00:00
Bill Fenner
a88113a830 Merge tcpdump 3.5 2000-01-30 01:05:24 +00:00
Bill Fenner
b045338223 Virgin import of tcpdump.org tcpdump v3.5 2000-01-30 00:45:58 +00:00
Bill Fenner
623fbbc49c This commit was generated by cvs2svn to compensate for changes in r56893,
which included commits to RCS files with non-trunk default branches.
2000-01-30 00:45:58 +00:00
Archie Cobbs
0989ffbd53 Document the -X flag. 2000-01-26 18:55:58 +00:00
Archie Cobbs
37eaa1d162 Add the -X flag to dump the buffer in "emacs-hexl" style,
that is, with ASCII character decoding.

Obtained from:	OpenBSD
2000-01-26 18:10:21 +00:00
Brian Somers
40e7a3d7fd Pass the pppoe packets into do_ppp_print correctly. 1999-11-27 18:04:57 +00:00
Brian Somers
e8fdcab380 Support PPPoE.
Add a missing comma to the lcp config options table.
1999-11-14 11:28:11 +00:00
Larry Lile
14fffcebea Add source routing support. 1999-08-28 15:14:15 +00:00
Julian Elischer
722012cc0c World, I'd like you to meet the first FreeBSD token Ring driver.
This  is for various Olicom cards. An IBM driver is following.
This patch also adds support to tcpdump to decode packets on tokenring.
Congratulations to the proud father.. (below)

Submitted by:	Larry Lile <lile@stdio.com>
1999-02-20 11:18:00 +00:00
Bill Fumerola
af693bfbc1 Remove bogus reference.
PR:		docs/8430
Submitted by:	jkb
1998-12-29 02:53:08 +00:00
Peter Hawkins
db4ce352d0 PR: 8429
Submitted by:		jkb@FreeBSD.ORG
correct typo in example
1998-10-24 10:08:05 +00:00
Bill Fenner
699fc31439 Merge tcpdump 3.4
PR:		bin/7877
1998-09-15 19:46:59 +00:00
Bill Fenner
4644f044b2 Virgin import of LBL tcpdump v3.4 1998-09-15 19:36:32 +00:00
Bill Fenner
90dc276c84 This commit was generated by cvs2svn to compensate for changes in r39297,
which included commits to RCS files with non-trunk default branches.
1998-09-15 19:36:32 +00:00
Peter Hawkins
3cf9b7ae04 PR: 7741
Submitted by:	Hellmuth Michaelis <hm@kts.org>
add LCP/PAP/CHAP/IPCP frame printing functionality
1998-08-30 05:32:44 +00:00
Peter Wemm
e0269ee77c Zap the T_UID,T_GID and T_UINFO stuff, it doesn't exist in the bind8
headers.  As I understand it, it was for some really ancient athena stuff
that has long been replaced.
1998-06-11 14:40:42 +00:00
Paul Traina
1c1351793c Handle frame relay, decode ATM VP/VC info, and handle ISO over FR. 1998-01-01 04:13:54 +00:00
Paul Traina
13acb9488b Add frame-relay decode support. 1997-12-31 21:50:31 +00:00
Garrett Wollman
0bfc6e6706 This is a hack. Decode IEEE 802.1Q VLAN tagging so that we can decode
tagged traffic according to the encapsulated protocol.  It needs in
addition modifications to the filter generator which would deal with
checking the ethertype and vlan header as required.
1997-12-08 21:42:35 +00:00
Bill Fenner
685b49de6d Get rid of the T2CHECK() macro, since it duplicates functionality
available from TCHECK(), TCHECK2(), TTEST() and TTEST2().
1997-05-27 02:20:36 +00:00
Bill Fenner
2ebf6c0513 Merge tcpdump 3.3.
The print_nfs.c changes are pretty extensive; this is partially because
 LBL did a lot of cleanup and partially because I removed lots of
 pointless changes away from the LBL style.

PR:		3371
mostly-Submitted by:	Chris Timmons <skynyrd@opus.cts.cwu.edu>
1997-05-27 02:17:42 +00:00
Bill Fenner
4de76e3137 Virgin import of LBL tcpdump v3.3 1997-05-27 02:11:31 +00:00
Bill Fenner
5775941a02 This commit was generated by cvs2svn to compensate for changes in r26180,
which included commits to RCS files with non-trunk default branches.
1997-05-27 02:11:31 +00:00
Garrett Wollman
ee3e763371 Update to reflect changes in net/if.h. 1997-01-03 20:10:04 +00:00
Adam David
18c5c2467a repair editor damage 1996-12-11 20:13:23 +00:00
Poul-Henning Kamp
bfdc83c7c5 Please shut up if asked to be quiet. 1996-12-11 09:38:18 +00:00
Bill Fenner
eb1accc762 LBL chose to use IPPROTO_ENCAP to represent IP proto 4 encapsulation
as performed by the multicast kernel modifications.  However, BSD
already had IPPROTO_ENCAP defined as 98 (RFC 1241 encapsulation).

This changes the use of IPPROTO_ENCAP to IPPROTO_IPIP, which is
the BSD name for IP proto 4.
1996-11-26 01:43:20 +00:00
Bill Fenner
f2e3e9a91e Fix the IGMP printer. A lost pair of parenthesis caused all IGMP
reports to be printed as IGMPv1, and a misapplied patch caused
IGMP Leave messages to be partially interpreted as DVMRP routing
messages.
1996-11-25 06:20:54 +00:00
Paul Traina
735211d3e9 Make things compile again. 1996-10-17 21:16:07 +00:00
Doug Rabson
647f50c3b3 Import NFSv3 support from NetBSD
Obtained from: NetBSD
1996-10-17 10:53:34 +00:00
Paul Traina
9ee4f69e6f Fix some typos 1996-10-01 01:08:47 +00:00
Paul Traina
0ca3c3e0f8 Here is a patch to make tcpdump recognise IPX packets that is using
ETHERNET_II framing. It got lost during the tcpdump upgrade.

Submitted by: John.Hay@mikom.csir.co.za
1996-09-15 17:55:09 +00:00
Paul Traina
36c6738a68 Print appletalk layer 3 addresses as 16 bit unsigned decimal numbers,
not two 8 bit values.  This conforms to industry standard.

These changes have been sent back to LBL.
1996-09-11 06:18:26 +00:00
Paul Traina
12e9609024 Fix bugs in the ISO (Fletcher) checksum, obey the -q flag, misc cleanup of
ISO based code, and document new options (courtesy of libpcap).
Submitted by:	Tony Li <tli@jnx.com>
1996-08-21 20:03:57 +00:00
Paul Traina
e8e91bdf52 Upgrade instructions 1996-08-19 21:55:18 +00:00
Paul Traina
d5a5022d60 Print IPX packets over a PPP link.
Always display IPX network number in decimal (industry standard).
Decode other PPP protocol types too.

Submitted by:	peter, pst, John Hay <jhay@mikom.csir.co.za>
1996-08-19 21:43:47 +00:00
Paul Traina
9cc97c3a9c Improvements to IGMP message decoding.
Add support for the router-alert option.
Submitted by:	Bill Fenner <fenner@parc.xerox.com>
1996-08-19 21:39:00 +00:00