summaryrefslogtreecommitdiff
path: root/print-juniper.c
Commit message (Collapse)AuthorAgeFilesLines
* clean K&R style up in function declarations a bitDenis Ovsienko2015-03-051-8/+8
| | | | The function body should have its opening brace on the next line.
* Leave it up to ip6_print() to handle non-IPv6-capable systems.Guy Harris2014-10-011-8/+0
| | | | | | | | | | | | 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-38/+38
| | | | | | | | | 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-2/+2
| | | | | | | | 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 LLDP, PPP and RSVP decodersDenis Ovsienko2014-04-021-8/+9
|
* NDOize Juniper DLT decodersDenis Ovsienko2014-03-291-145/+162
|
* NDOize ISO CLNS decoderDenis Ovsienko2014-03-281-8/+8
|
* print-juniper: add a missing breakFrancois-Xavier Le Bail2014-03-271-0/+1
|
* NDOize ATM, MPTCP, NTP, VTP & Whiteboard decodersDenis Ovsienko2014-03-201-2/+2
|
* NDOize Frame Relay, LMP and RADIUS decodersDenis Ovsienko2014-03-181-2/+2
|
* NDOize LLC decoderDenis Ovsienko2014-03-151-2/+2
|
* NDOize 8 more small decodersDenis Ovsienko2014-03-131-2/+2
| | | | | This change converts ZeroMQ, IPX, MPLS, IPv6 options, PPPoE, RIPng, PFLOG and Sun RPC decoders.
* NDOize more small decodersDenis Ovsienko2014-03-121-1/+1
| | | | | This change converts decoders for: DLT_RAW, IPv6 routing header, USB, Symantec firewall and cHDLC.
* 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-2/+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.
* whitespace changesMichael Richardson2014-01-011-32/+32
|
* make more array declarations static/constDenis Ovsienko2013-12-191-2/+2
|
* justify declarations of struct tok arraysDenis Ovsienko2013-09-241-7/+7
| | | | | | 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-4/+4
|
* reworked print-ether to use netdissectMichael Richardson2010-10-071-4/+4
|
* Process VLAN frames and Alteon jumbo frames in the Ethernet printer.Guy Harris2010-02-211-6/+5
| | | | | | | | | | | | | | | | | 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.
* Patches from NetBSD tree.mcr2007-08-291-3/+7
|
* bugfix: ggsn: parse against cookies and not the ip headerhannes2006-06-141-3/+4
|
* add GGSN PIC name resolutionhannes2006-06-141-1/+5
|
* add ifle/ifmt name resolutionhannes2006-03-101-5/+267
|
* improve Control Word detection heuristics for OAM cellshannes2006-02-241-11/+16
|
* squelch warning message for unknown juniper encapulationshannes2006-02-011-1/+18
|
* -add support (TLV parser) for the juniper .pcap extensionshannes2006-01-301-15/+171
| | | | | in lack of pcap-ng we prepend TLV encoded fields before the payload packet on all Juniper proprietary DLTs
* add support for DLT_JUNIPER{PPP,ETHER,FRELAY,CHDLC} printershannes2005-08-231-1/+69
|
* add support for detection of the extension bithannes2005-08-101-8/+16
|
* #ifdef references to various Juniper DLT_ values, so that we can buildguy2005-07-291-1/+13
| | | | | | even on systems with older libpcaps that lack them. (tcpdump isn't supposed to *require* the corresponding version of libpcap, although it works best with that version or later.)
* update length,caplen fields when determining the cookie lengthhannes2005-07-211-1/+3
|
* add support for Frame-Relay over AS-PIC dissectorhannes2005-07-201-13/+76
|
* bugfix: an empty AS-PIC cookie will be interpreted as IPv4 but could be IS-IShannes2005-07-201-2/+10
|
* Juniper routers do not deliver a heading HEC byte for oam cells: make the ↵hannes2005-06-201-3/+4
| | | | OAM printer to support both HEC and non-HEC OAM cells
* check for cell-relay controlword between the cookie and the OAM payloadhannes2005-06-091-1/+8
|
* From Albert Chin: don't call "ip6_print()" if it's not available.guy2005-06-071-1/+3
|
* Protect code for particular Juniper DLT_ values with #ifdefs, so thisguy2005-06-031-1/+46
| | | | can be compiled with older versions of libpcap.
* add basic support for DLT_JUNIPER_{GGSN,ES,MONITOR,SERVICES}, better ↵hannes2005-05-221-2/+215
| | | | boundary checking when parsing the juniper headers
* add support for the atm-cell-relay control wordhannes2005-05-171-2/+8
|
* add support for AS-PIC cookieshannes2005-05-121-15/+60
|
* add support for DLT_JUNIPER_PPPOE_ATM printerhannes2005-05-121-28/+45
| | | | | replace the JUNIPER_ enums with real DLT_JUNIPER types (does this break environments where an old libpcap is present ?)
* do not dependend on eflag setting wether to configure cookie data or not - ↵hannes2005-05-101-3/+4
| | | | e.g. the atm printer needs to access the cookies
* add support for DLT_JUNIPER_PPPOE, fix zero-length cookieshannes2005-05-031-8/+29
|
* From Albert Chin: IBM's C compiler, at least for AIX 4.3.3, doesn'tguy2005-04-251-2/+2
| | | | allow a trailing comma on the last member of an enum.
* Make the string pointer in "struct juniper_cookie_table" just a "charguy2005-04-211-2/+2
| | | | *", so as to avoid GCC 4.0 warnings when initializing it from a string.
* refactor the juniper_parse header printer, add juniper FRF.16 dissectorhannes2005-04-201-158/+238
|
* refactored ip_print() so that chained header parser (ESP/AH) canmcr2005-04-061-3/+11
| | | | more easily call the inner parts.
* add support for Juniper ML-PPP DLT for printing captureshannes2005-01-271-1/+54
| | | | taken on the Link-Service (LS) and Multi-Link (ML) PICs
* add support for printing Multi-Link Frame Relayhannes2005-01-271-2/+60
| | | | captured on Juniper ML-PIC and LS-PIC cards