Commit Graph

37 Commits

Author SHA1 Message Date
Guy Harris
a91d20cc84 Convert the IPv6 printer to use netdissect. 2010-11-07 12:50:16 -08:00
Michael Richardson
1cead823ec reworked print-ether to use netdissect 2010-10-07 14:40:50 -04:00
Guy Harris
ea5736c8c6 Process VLAN frames and Alteon jumbo frames in the Ethernet printer.
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.
2010-02-21 12:44:53 -08:00
mcr
05b7f224d8 Patches from NetBSD tree. 2007-08-29 02:31:44 +00:00
hannes
b0d4e1f955 bugfix: ggsn: parse against cookies and not the ip header 2006-06-14 21:40:00 +00:00
hannes
476bd0e900 add GGSN PIC name resolution 2006-06-14 16:13:51 +00:00
hannes
3820594d70 add ifle/ifmt name resolution 2006-03-10 23:43:29 +00:00
hannes
0f3fba52a6 improve Control Word detection heuristics for OAM cells 2006-02-24 12:18:03 +00:00
hannes
227002c8d6 squelch warning message for unknown juniper encapulations 2006-02-01 14:42:17 +00:00
hannes
b26f4c74ba -add support (TLV parser) for the juniper .pcap extensions
in lack of pcap-ng we prepend TLV encoded fields
  before the payload packet on all Juniper proprietary DLTs
2006-01-30 16:20:06 +00:00
hannes
0bf0df6572 add support for DLT_JUNIPER{PPP,ETHER,FRELAY,CHDLC} printers 2005-08-23 10:24:58 +00:00
hannes
1edfc8b4e0 add support for detection of the extension bit 2005-08-10 14:18:57 +00:00
guy
85bf26f688 #ifdef references to various Juniper DLT_ values, so that we can build
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.)
2005-07-29 23:51:16 +00:00
hannes
3ee7c24a6f update length,caplen fields when determining the cookie length 2005-07-21 11:42:23 +00:00
hannes
156694cc62 add support for Frame-Relay over AS-PIC dissector 2005-07-20 22:17:00 +00:00
hannes
5bd67ebef5 bugfix: an empty AS-PIC cookie will be interpreted as IPv4 but could be IS-IS 2005-07-20 13:09:59 +00:00
hannes
99b69f6898 Juniper routers do not deliver a heading HEC byte for oam cells: make the OAM printer to support both HEC and non-HEC OAM cells 2005-06-20 07:37:01 +00:00
hannes
a40390b989 check for cell-relay controlword between the cookie and the OAM payload 2005-06-09 07:56:26 +00:00
guy
26df669287 From Albert Chin: don't call "ip6_print()" if it's not available. 2005-06-07 21:53:50 +00:00
guy
57df820f4e Protect code for particular Juniper DLT_ values with #ifdefs, so this
can be compiled with older versions of libpcap.
2005-06-03 22:03:02 +00:00
hannes
15348446cd add basic support for DLT_JUNIPER_{GGSN,ES,MONITOR,SERVICES}, better boundary checking when parsing the juniper headers 2005-05-22 21:18:17 +00:00
hannes
7bf44ce974 add support for the atm-cell-relay control word 2005-05-17 09:37:30 +00:00
hannes
e87b574372 add support for AS-PIC cookies 2005-05-12 08:40:18 +00:00
hannes
24945035f0 add support for DLT_JUNIPER_PPPOE_ATM printer
replace the JUNIPER_ enums with real DLT_JUNIPER types
  (does this break environments where an old libpcap is present ?)
2005-05-12 07:10:55 +00:00
hannes
be2ddf19f3 do not dependend on eflag setting wether to configure cookie data or not - e.g. the atm printer needs to access the cookies 2005-05-10 10:41:40 +00:00
hannes
54bfc1d675 add support for DLT_JUNIPER_PPPOE, fix zero-length cookies 2005-05-03 20:35:41 +00:00
guy
ad87e9495c From Albert Chin: IBM's C compiler, at least for AIX 4.3.3, doesn't
allow a trailing comma on the last member of an enum.
2005-04-25 18:53:27 +00:00
guy
19b483245d Make the string pointer in "struct juniper_cookie_table" just a "char
*", so as to avoid GCC 4.0 warnings when initializing it from a string.
2005-04-21 04:03:43 +00:00
hannes
a51ee6ce2c refactor the juniper_parse header printer, add juniper FRF.16 dissector 2005-04-20 12:41:44 +00:00
mcr
4189fb7df6 refactored ip_print() so that chained header parser (ESP/AH) can
more easily call the inner parts.
2005-04-06 21:32:38 +00:00
hannes
3e2b7a0477 add support for Juniper ML-PPP DLT for printing captures
taken on the Link-Service (LS) and Multi-Link (ML) PICs
2005-01-27 18:30:36 +00:00
hannes
b00adae2bc add support for printing Multi-Link Frame Relay
captured on Juniper ML-PIC and LS-PIC cards
2005-01-27 10:17:58 +00:00
hannes
04eb6a7629 fix the ATM1 PIC OAM cell dissecting 2005-01-25 09:59:40 +00:00
guy
f92053e7c4 If we print something as an OAM cell, we're done with it, so just return.
Note that sometimes we appear to be mis-dissecting something as an OAM
cell.
2005-01-24 03:27:26 +00:00
hannes
9e60f9acc7 -change the BPF_ defines to JUNIPER_BPF defines as they are private
-rename ppp_heuristic_guess to juniper_ppp_heuristic_guess as only
 juniper supported protocols are being tested
2004-10-28 09:36:16 +00:00
hannes
abb16862de - add a brief ML-PPP printer
- add PPP_IPV6 in the PPP name resolution table
- change the cryptic SSNHF LCP options
    to "12 Bit seq #" for better clarity to human devices
2004-10-20 16:14:15 +00:00
hannes
ecd1d49fcd add support for dissecting DLT_JUNIPER_ATM1 (137) and DLT_JUNIPER_ATM2 (135) 2004-10-19 15:59:39 +00:00