Commit Graph

25 Commits

Author SHA1 Message Date
hannes
4d399db499 -move the nlpid definitions and tokens to a dedicated file(s)
-make use of it in the ISO, Frame-relay and CDP printers
2004-10-07 14:53:09 +00:00
guy
375fe86ec9 Add another check, and fix a check. 2004-03-24 05:59:16 +00:00
guy
d3d90f29e5 Add bounds checking. 2004-03-24 00:41:13 +00:00
hannes
df946ca2d7 bugfix length output in non-verbose mode 2003-12-29 19:26:28 +00:00
guy
bbc1cfa669 Have the configure script arrange that the Makefile define _U_
appropriately, and that GNUmakefile and the MSVC++ project file define
it apppriately, as we do with libpcap, rather than defining it in
"interface.h".

Undo the rcsid-shuffling and addition of extra #includes, as we no
longer need to arrange that "interface.h" be included before using _U_
in an RCS ID or copyright.
2003-11-16 09:36:07 +00:00
guy
3824a6c041 From Neil Spring:
use "_U_" in the definitions of "rcsid[]", to eliminate
	complaints about those variables being unused;

	move the definitions after the include of "interface.h", or add
	an include of "interface.h", so that "_U_" is defined.

Include "config.h" before including "tcpdump-stdinc.h" in
"missing/datalinks.c".
2003-11-15 00:39:12 +00:00
hannes
79754989b1 the capability code is a 32-bit and not a 8-bit value 2003-01-08 12:45:26 +00:00
hannes
1126c84bdb CDP rework
- multiline output +identation (behind v option)
  - removal of EXTRACT_ lookalikes
  - dissecting the Capabilities field
  - more use of tok2str()
2002-11-10 21:32:53 +00:00
guy
c422d3ab0f Get rid of the "-Wno-unused" flag, and fix up most of the
unused-parameter problems reported by GCC.  Add an _U_ tag to label
parameters as unused if the function is called through a pointer (so
that you can't change its signature by removing parameters) or if there
are unused parameters only because the function isn't complete.

Add some additional bounds checks the necessity for which was revealed
while cleaning up unused-parameter problems.

Make some routines static.

"lcp_print()", defined in "print-lcp.c", isn't called anywhere -
"print-ppp.c" has the code to dissect LCP.  Get rid of "print-lcp.c".
2002-09-05 21:25:34 +00:00
guy
d08d16ccaa Merge in CDP changes from Terry Kennedy <terry@tmk.com>. 2002-08-07 05:21:06 +00:00
risso
3d932490b8 Added support for Win32, based on WinPcap. 2002-08-01 08:52:55 +00:00
itojun
111ff8a61d whitespace cleanup 2002-06-11 17:08:37 +00:00
guy
632bb20861 Another bug fix from Gert Doering. 2002-04-26 09:51:34 +00:00
guy
4f65f2dc96 From Gert Doering <gert@greenie.muc.de>:
The VLAN ID calculation was wrong (either I had a bug in the
	switch I tested the original code against, or I was just stupid)
	- the "-1" offset doesn't belong there.

	In addition, there are some new TLV values that Cisco has
	started using.
2002-04-26 09:13:19 +00:00
fenner
c672f00276 Eliminate some unused parameters.
Use const more.
Use EXTRACT_* macros more.
Use TCHECK* more.
Use tok2str() to replace some home-grown workalikes.
smb:
 - Get rid of private types, use tcpdump-defined types
 - Rename fdata and fdata1 to smb_fdata and smb_fdata1 to avoid conflict
   with IRIX library function.
2001-09-17 21:57:50 +00:00
guy
d8dd69bab8 Patch from Gert Doering <gert@greenie.muc.de> to handle IPv6 addresses
in CDP packets.

Changes to use EXTRACT_ macros rather than extracting by hand, and to
use the "protocol type" field as well as the protocol and address
lengths and the protocol field when determining the address type.
2001-08-25 09:46:33 +00:00
fenner
9bd18ba870 Fix IP address list spacing issues 2001-07-04 20:56:39 +00:00
fenner
881c14ce53 Decode "goodbye" packet type.
Fix off-by-one error in the newly-introduced truncation checks which
 caused proper-length addresses to trigger a truncated packet.
2001-06-15 20:52:12 +00:00
itojun
46458a4dc3 more overrun sensitivity 2001-06-15 07:58:28 +00:00
itojun
e246418754 style. avoid a couple of possible overrun 2001-06-15 07:54:19 +00:00
fenner
06fc2bdce6 Handle new print-llc.c dispatching.
Don't print multi-line output unless -vv.
2001-05-10 02:58:30 +00:00
assar
ed19831eeb print more types, from Gert Doering <gert@greenie.muc.de> 2000-07-29 07:27:54 +00:00
itojun
a4a78bf5ca avoid infinite loop on len=0 2000-05-26 09:32:00 +00:00
assar
37af9b50db add code for print v4 prefixes. also From: Gert Doering <gert@greenie.muc.de> 2000-05-16 23:54:55 +00:00
assar
dec51d9f87 print cisco cdp packets, from Gert Doering <gert@greenie.muc.de> 2000-05-15 00:41:06 +00:00