summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* enable support for Address-Withdraw and Label-Withdraw Msgs, fix typoshannes2006-02-011-5/+5
|
* squelch warning message for unknown juniper encapulationshannes2006-02-011-1/+18
|
* add support for the BFD Discriminator TLVhannes2006-02-011-1/+9
|
* add support for FRF.16 Multilink Frame-Relay (DLT_MFR)hannes2006-02-012-2/+23
|
* add support for Cisco style NLPID encapsulationhannes2006-01-251-1/+9
|
* Added print-dccp.c to the MSVC and Cygnus makefiles.gianluca2006-01-222-1/+6
|
* bugfix: add hec offset for celltype determination; make use of tok2str() for ↵hannes2006-01-221-16/+11
| | | | OAM F type printing, unhide OAM elements like (vci,vpi) under eflag
* bugfix: pre-init OUI tokentable to an empty tokentable to prevent a NULL ref ↵hannes2006-01-171-2/+6
| | | | and subsequent segfault
* From Gisle Vanem: don't use GCC features such as the ability to declareguy2005-12-052-6/+12
| | | | | | variables in the middle of the block., and #if out dccp_hdr_data() (which is unused, and defined in such a fashion that it doesn't work on MSVC++, with the structure name and the function name the same).
* Propagate from main branch:guy2005-12-051-22/+23
| | | | | | date: 2005-11-04 00:45:39 +0000; author: hannes; state: Exp; lines: +23 -22 from Ian Mc Donald <imcdnzl AT gmail.com>: displaying ACKs for close packets
* Assorted edits.guy2005-12-051-2/+2
|
* add support for further dissection of the IPCP Compression Optionhannes2005-12-051-5/+71
|
* display I/G bithannes2005-12-011-2/+10
|
* bugfix: bogus SS codepoints, display ctrl field correct, added 'Poll' token ↵hannes2005-12-012-9/+12
| | | | for I/S frames
* add basic support for keyed authentication TCP optionhannes2005-11-291-2/+2
|
* clean up the L3 offset calculation for C-HDLChannes2005-11-291-13/+13
|
* Improve the description of the output of tcpdump.guy2005-11-241-3/+4
|
* avoid double printing of "unknown proto" messagehannes2005-11-241-2/+3
|
* Make it clearer that the hex or hex-and-ASCII dump for "-x", "-xx",guy2005-11-231-5/+13
| | | | "-X", and "-XX" doesn't *replace* the dissected dump, it *augments* it.
* Clarify the syntax of a network number.guy2005-11-231-3/+11
|
* We've gotten our IP definitions/declarations from our own "ip.h" for aguy2005-11-131-7/+1
| | | | | while, and it defines IP_MF and IP_DF; we don't need to compensate for system headers lacking them.
* Use sizeof to get sizes of various structure members, rather thanguy2005-11-131-4/+6
| | | | | hardwiring the sizes (which runs the risk that the hardwired size in the structure definition and code could get out of sync).
* Fix the sense of a test.guy2005-11-131-2/+2
|
* Get rid of a return value in a void function.guy2005-11-131-2/+2
|
* Have print_llc() clear out the extracted_ethertype argument, rather thanguy2005-11-137-22/+20
| | | | | | | | | | | | | | having its callers do so - some of its callers *weren't* doing so, leaving random junk in that argument in some cases. When checking for "802.3-encapsulated" IPX, check the raw values of the SSAP and DSAP for 0xFF, don't check them after the low-order bit has been masked off. The "flag" values in the LLC header aren't bits, they're combinations of bits, including the combination "no bits"; don't use "bittok2str()" on them. Also, combine the proper bits, namely the C/R bit (which we weren't combining) and the P/F bit (which we were).
* Have parse_elements() flag each item as "present (and not truncated)",guy2005-11-132-86/+153
| | | | | | | | | | | | | | | | | | | | | | "present but truncated", and "not present", and don't have it return an indication of whether we ran past the end of a packet - instead, have the routines that handle particular management frame types use macros that check what the status of a particular tagged parameter is and: print it if present and not truncated; skip it if not present; return a "packet truncated" indication if present but truncated. This means we handle tagged parameters that aren't present, and print parameters that are present and not truncated even if there's a present-but-truncated field after them. Add some additional bounds checks. Make the table of rates bigger - there can be more than 8 rates in a rates tagged parameter.
* Clear out the flags field when parsing the Frame Relay header, ratherguy2005-11-131-1/+3
| | | | than leaving random junk in the lower 16 bits.
* Properly pass the MF flag and fragment offset to the UDP, TCP, and ICMPguy2005-11-131-4/+6
| | | | print routines.
* Get rid of an #ifdef - to zero something out with memset, just useguy2005-11-121-6/+2
| | | | "sizeof something" as the size argument.
* If you're going to stuff the result of EXTRACT_32BITS() into a variable,guy2005-11-101-3/+4
| | | | making the variable 32 bits or longer might be a good idea.
* Add -Wpointer-arith to the list of warnings we enable with GCC.guy2005-11-082-884/+2296
|
* The ANSI C Committee sayeth "Thou shalt not add to a pointer to void,guy2005-11-081-2/+2
| | | | for a void hath no size".
* resolve CHDLC proto to name, remove tok2str() lookalivehannes2005-11-041-13/+13
|
* add support for PPP over Frame-Relayhannes2005-11-041-1/+5
|
* calculate correct length of LCP echo/echo-reply Magic-Num trailing datahannes2005-11-031-3/+4
|
* add cisco prop. eigrp related, extd. communitieshannes2005-10-191-1/+15
|
* Uniformly use IEEE802_11_TSTAMP_LEN as the 802.11 timestamp length andguy2005-10-172-5/+13
| | | | | | | | IEEE802_11_AP_LEN as the length of the previous AP in reassociation frame. Before copying variable-length fields from a management frame IE, make sure the length isn't too large.
* Before subtracting a value from a prefix length, make sure the prefixguy2005-10-161-2/+24
| | | | | | | | | | | | length is >= the value. (In theory, if that check isn't done, the prefix length will overflow, and, as it's unsigned, that'd make it very large, and rejected by the other sanity check - but it's cleaner to check explicitly.) In decode_rt_routing_info(), fix the checks for the prefix length - according to draft-marques-ppvpn-rt-constrain-01, the default route target has a 0-length prefix, and all others have a length between 32 and 96.
* From Markus Schoepflin: don't use "struct in6_addr" if INET6 isn'tguy2005-10-162-1/+22
| | | | | | | defined, because, in that case, "struct in6_addr" probably isn't defined, either. Check for too-large bit lengths in TLVs.
* From Noritoshi Demizu: memcmp() returns a value = 0 if the two memoryguy2005-10-161-2/+2
| | | | | | regions are =, < 0 if the first memory region is < the second, or > 0 if the first memory region is > the second, so to check whether two memory regions are equal, check whether memcmp()'s return value is == 0.
* Propagateuid20562005-10-134-848/+20
| | | | | | | | | | | | | | | | | | | revision 1.3.2.1 date: 2005/10/02 22:29:54; author: mcr; state: Exp; lines: +0 -0 pullup of working test results for print-X.out and revision 1.3.2.1 date: 2005/10/02 22:29:55; author: mcr; state: Exp; lines: +0 -0 pullup of working test results for print-XX.out to print-capX.out and print-capXX.out, and re-remove print-X.out and print-XX.out, so that they don't collide with "print-x.out" and "print-xx.out" on systems with case-insensitive file systems (not only are modern Windows file systems case-insensitive but case-preserving, so, by default, is HFS+ on OS X, so you can even have case-insensitivity on UN*X systems).
* bugfix: don't mask the more-fragments bit for ICMP checksum suppressionhannes2005-10-071-2/+2
|
* pullup of working test resultstcpdump_3_9rel4tcpdump-3.9.5mcr2005-10-0218-62/+3103
|
* depreciate llcsap_string() as LLC SAP name resolution is now done via a ↵hannes2005-09-293-60/+3
| | | | single tokentable in the LLC printer
* rework the LLC printer:hannes2005-09-292-55/+60
| | | | | | | | -remove tok2str() and bittok2str() lookalikes -print length field -print more self-describing tokensstring e.g. "Receiver not ready" instead of "rnr" -add codepoint for SNA
* Don't set the length of the attributes based on the snapshot length,guy2005-09-261-67/+94
| | | | | | | | | | | | | | | | | | | | | just add some additional TCHECK/TCHECK2 bounds checks to the code that dissects attributes and let that handle the snapshot length checks. Do the length check once per attribute, rather than doing a single check up front. Use TCHECK/TCHECK2 and TTEST/TTEST2, so that we print "too short" indications. Make the "too short" indications all look the same. Rename "radius_attr_print()" to "radius_attrs_print()" to make it clearer that it has a loop to print all attributes, rather than just printing one attribute. Add in a bunch of additional bounary/length checks, and do the As per Steiner Haug, the length of a vendor-specific attribute includes the type and length bytes, so subtract two from the length to get the length of the attribute's data.
* update the diffserv-te error-spec codepoints (and retain the old ones)hannes2005-09-221-3/+6
|
* From David Smith: let the path for the crypto headers and libraries beguy2005-09-213-5/+22
| | | | | set explicitly by setting Xprefix as an environment variable, for use when cross-compiling.
* retain the old diffserv-te codepoints for a transition periodhannes2005-09-202-3/+10
|
* Also give Yoshifumi Nishida credit for the DCCP printer.guy2005-09-201-0/+1
|