summaryrefslogtreecommitdiff
path: root/print-cdp.c
Commit message (Collapse)AuthorAgeFilesLines
* Use fn_printn() to print strings, to catch non-printable characters.Guy Harris2009-06-281-8/+21
|
* -move the nlpid definitions and tokens to a dedicated file(s)hannes2004-10-071-2/+3
| | | | -make use of it in the ISO, Frame-relay and CDP printers
* Add another check, and fix a check.guy2004-03-241-2/+3
|
* Add bounds checking.guy2004-03-241-1/+8
|
* bugfix length output in non-verbose modehannes2003-12-291-3/+6
|
* Have the configure script arrange that the Makefile define _U_guy2003-11-161-4/+4
| | | | | | | | | | 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.
* From Neil Spring:guy2003-11-151-4/+4
| | | | | | | | | | | 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".
* the capability code is a 32-bit and not a 8-bit valuehannes2003-01-081-4/+4
|
* CDP reworkhannes2002-11-101-95/+136
| | | | | | | - multiline output +identation (behind v option) - removal of EXTRACT_ lookalikes - dissecting the Capabilities field - more use of tok2str()
* Get rid of the "-Wno-unused" flag, and fix up most of theguy2002-09-051-3/+2
| | | | | | | | | | | | | | | 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".
* Merge in CDP changes from Terry Kennedy <terry@tmk.com>.guy2002-08-071-5/+8
|
* Added support for Win32, based on WinPcap.risso2002-08-011-7/+2
|
* whitespace cleanupitojun2002-06-111-4/+4
|
* Another bug fix from Gert Doering.guy2002-04-261-2/+2
|
* From Gert Doering <gert@greenie.muc.de>:guy2002-04-261-2/+56
| | | | | | | | | 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.
* Eliminate some unused parameters.fenner2001-09-171-2/+2
| | | | | | | | | | | 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.
* Patch from Gert Doering <gert@greenie.muc.de> to handle IPv6 addressesguy2001-08-251-8/+52
| | | | | | | | 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.
* Fix IP address list spacing issuesfenner2001-07-041-5/+8
|
* Decode "goodbye" packet type.fenner2001-06-151-7/+10
| | | | | Fix off-by-one error in the newly-introduced truncation checks which caused proper-length addresses to trigger a truncated packet.
* more overrun sensitivityitojun2001-06-151-15/+28
|
* style. avoid a couple of possible overrunitojun2001-06-151-95/+110
|
* Handle new print-llc.c dispatching.fenner2001-05-101-13/+10
| | | | Don't print multi-line output unless -vv.
* print more types, from Gert Doering <gert@greenie.muc.de>assar2000-07-291-1/+10
|
* avoid infinite loop on len=0itojun2000-05-261-2/+5
|
* add code for print v4 prefixes. also From: Gert Doering <gert@greenie.muc.de>assar2000-05-161-3/+18
|
* print cisco cdp packets, from Gert Doering <gert@greenie.muc.de>assar2000-05-151-0/+160