summaryrefslogtreecommitdiff
path: root/print-fr.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Make a never-negative variable a u_int.Guy Harris2016-09-201-2/+2
| | | | That also lets us eliminate a cast.
* Fix incorrect length check.Guy Harris2016-09-201-1/+1
|
* Move the printer summaries from INSTALL.txt to each printerFrancois-Xavier Le Bail2016-08-141-0/+2
| | | | | | | | with the tag '\summary:' for greping. Remark: Currently some printers have no summary line. Moreover: Summarize all printers with a single line in INSTALL.txt
* Squelch a signed vs. unsigned comparison warning.Guy Harris2016-04-131-4/+4
| | | | uint8_t + int constant = int; make the constant unsigned.
* Add some packet-length checks.Guy Harris2016-02-121-7/+27
|
* Rename 'tcpdump-stdinc.h' to 'netdissect-stdinc.h'Francois-Xavier Le Bail2015-09-101-1/+1
| | | | Get the full log via: git log --follow netdissect-stdinc.h
* Printers must include 'netdissect.h', not 'interface.h'Francois-Xavier Le Bail2015-09-051-1/+1
|
* Fix a bunch of de-constifications.Guy Harris2015-04-261-2/+2
|
* Clean up printing of LLC packets.Guy Harris2015-04-171-1/+1
| | | | | | | | | | | | | | | | | | | Don't print LLC header information for SNAP packets; if we have a SNAP header, just call snap_print() and return its return value, regardless of whether it's 1 or 0, don't fall into the code to print raw LLC header information - and don't print it with -e, either. If llc_print() returns 0, just call the default packet printer, don't print the MAC-layer header or the extracted ethertype - llc_print() will print the source and destination MAC addresses and whatever type information is in the LLC or SNAP headers. If we don't know the DSAP/LSAP, and it's an information frame (numbered or not) and not an XID frame, return 0, so that we give a hex dump of the raw payload. In addition, print the length when printing SNAP header information with -e.
* dismiss NETDISSECT_REWORKED macroDenis Ovsienko2015-03-221-1/+0
| | | | | | | The purpose of this macro was to enable the file-by-file switch to NDO, after which only tcpdump.c had a use of it and the definitions guarded by it. Update tcpdump.c not to require them any more and dismiss the unused definitions.
* clean K&R style up in function declarations a bitDenis Ovsienko2015-03-051-3/+5
| | | | The function body should have its opening brace on the next line.
* Clean up bounds checking.Guy Harris2014-12-191-41/+77
| | | | | Fix link-layer header length for Cisco-style encapsulation while we're at it.
* Leave it up to ip6_print() to handle non-IPv6-capable systems.Guy Harris2014-10-011-2/+1
| | | | | | | | | | | | Always define and declare ip6_print(), always compile print-ip6.c, and always call it if we recognize a payload as IPv6. If INET6 isn't defined, ip6_print() will just print the length and note that printing isn't supported. That way, we don't do weird dissection of IPv6 packets on systems without IPv6 support, due to, for example, ethertype_print() returning 0 ("not dissected") for IPv6 packets on those systems (IPv6-over-Frame Relay was dissected weirdly due to this).
* u_intN_t is dead, long live uintN_t.Guy Harris2014-04-231-12/+12
| | | | | | | | | And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
* Netdissectify the to-name resolution routines.Guy Harris2014-04-041-1/+1
| | | | | | | | Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
* NDOize some generic codeDenis Ovsienko2014-04-031-1/+1
|
* NDOize LLDP, PPP and RSVP decodersDenis Ovsienko2014-04-021-1/+1
|
* NDOize safeputs() and safeputchar()Denis Ovsienko2014-04-011-1/+1
|
* NDOize ISO CLNS decoderDenis Ovsienko2014-03-281-1/+1
|
* make use of ND_DEFAULTPRINT()Denis Ovsienko2014-03-261-2/+2
|
* NDOize Frame Relay, LMP and RADIUS decodersDenis Ovsienko2014-03-181-107/+116
|
* NDOize LLC decoderDenis Ovsienko2014-03-151-1/+1
|
* don't include pcap.h needlesslyDenis Ovsienko2014-02-281-1/+0
| | | | | | | | | | Both interface.h and netdissect.h include <pcap.h>, thus most files should not include it regardless if these need it or not. The only exceptions so far remain: * addrtoname.c * missing/datalinks.c * missing/dlnames.c * tcpdump.c
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-5/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* ndo-ize print-ascii: hex_print_with_offset()Michael Richardson2014-01-011-5/+11
|
* whitespace changesMichael Richardson2014-01-011-17/+17
|
* make more array declarations static/constDenis Ovsienko2013-12-191-1/+1
|
* justify declarations of struct tok arraysDenis Ovsienko2013-09-241-8/+8
| | | | | | Make sure all of them are declared const and most of them -- static. Proper declaration of token arrays is a common review point for new code that is based on existing decoders. Thus fix the issue at its root.
* Convert the IPv6 printer to use netdissect.Guy Harris2010-11-071-1/+1
|
* reworked print-ether to use netdissectMichael Richardson2010-10-071-1/+1
|
* Process VLAN frames and Alteon jumbo frames in the Ethernet printer.Guy Harris2010-02-211-4/+3
| | | | | | | | | | | | | | | | | Instead of having the Ethernet-type handler process the VLAN and Alteon jumbo frame Ethernet type values, process them in the Ethernet (and Linux cooked-mode) dissectors. This makes it easier for the right MAC addresses to be printed for those packets. As part of that, rename ether_encap_print() to ethertype_print() - it doesn't print encapsulated Ethernet frames, it prints payloads whose packet type is indicated by an Ethernet type field value - and remove the no-longer-needed "extracted Ethernet type" argument. That also lets us eliminate it from the SNAP print routine. Make ether_print() take a function, and an argument to pass to that function, as parameters, so that, for example, the ATM LANE printer can use it and put the LEC ID into the link-layer headeer printout.
* code cosmetics: bracketize the on-liners after if statements, proper length ↵hannes2006-06-231-36/+54
| | | | decrement for ANSI LMI frames
* rework the ARP printer & add support for Frame-Relay ARPhannes2006-02-111-8/+19
|
* add support for FRF.16 Multilink Frame-Relay (DLT_MFR)hannes2005-12-131-1/+19
|
* 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.
* add support for PPP over Frame-Relayhannes2005-11-041-1/+5
|
* Fix a test (as per a compiler warning).guy2005-08-231-2/+2
|
* hexdump MFR middle or last fragmentshannes2005-08-091-7/+15
|
* -share some code between the FRF.15 and FRF.16 printerhannes2005-07-271-20/+23
| | | | | | -display B, E & C header flags in the FRF.16 printer -evaluate the correct data [!flags] in the FRF.15 printer for deciding if the frame is a end-to-end frag or an interface frag
* Pointers into packet data should usually be pointers to unsigned 1-byteguy2005-07-271-2/+2
| | | | values.
* don't print the null-termination byte in FRF.16 link/bundle msgshannes2005-07-261-3/+7
|
* fix 'Bundle ID' typohannes2005-07-211-2/+2
|
* link codeset 1 (lmi messages) to codeset 5, add IE = 0 sanity check, print ↵hannes2005-07-211-30/+40
| | | | codeset
* add support for MFR FRF.16 IE Message printing, add boundary checkshannes2005-07-211-15/+88
|
* add basic support for FRF.16 Frame-Relay dissector, fix garbled output from ↵hannes2005-07-201-8/+100
| | | | twice calling fr_q933_print_ie_codeset
* Add a flag to suppress the "default_print()" call made in variousguy2005-07-071-2/+2
| | | | | | | | link-layer print routines if no other print routine claimed the packet. Test whether that flag is set rather than testing whether neither of -x or -q were specified, and have -x, -q, *and* -X set that flag, so that -X suppresses it just as -x does. That way you don't get those pckets dumped twice if -X was specified.
* split up the frame-relay printer intohannes2005-05-271-22/+32
| | | | | fr_if_print and fr_print similar to PPP; fr_print can be called from outside without supplying a pcap_header;
* Make "snap_print()" handle fetching and printing the OUI.guy2005-04-261-16/+2
| | | | | | | | | | | | | | | | | | Don't copy the LLC header to a "struct llc", just construct the individual fields. Fetch the control field early in the dissection process, and check to make sure we have at least 4 bytes of LLC header if it's not a U frame. Fetch both bytes of the control field for I and S frames, and display all 4 hex digits of it. Only dissect UI frames as BPDUs, and pass the BPDU dissector a pointer to the beginning of the BPDU, not the beginning of the LLC header - not all BPDUs are encapsulated in LLC headers. Only dissect UI frames as IP packets. Do bounds checking in "snap_print()".
* Dereference the *right* function pointer.guy2005-04-251-2/+2
|
* Base all interpretion of IE contents on the code set.guy2005-04-251-48/+84
| | | | Get rid of an extra blank.