Add a new Wiretap encapsulation type for Cisco HDLC. Map the NetBSD
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 15 Mar 2001 09:11:03 +0000 (09:11 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 15 Mar 2001 09:11:03 +0000 (09:11 +0000)
commit091977af66b763af3ae1d77db08ebe8de7a40c12
treecf8e3945012163e0e15fde35c4e967ef6ebd56c6
parent57303d518895001259aba16559987a013387910f
Add a new Wiretap encapsulation type for Cisco HDLC.  Map the NetBSD
DLT_HDLC to it.

Make a separate dissector for Cisco HDLC, and add a dissector for Cisco
SLARP.  Have the PPP dissector call the Cisco HDLC dissector if the
address field is the Cisco HDLC unicast or multicast address.  Use the
Cisco HDLC dissector for the Cisco HDLC Wiretap encapsulation type.

Add a new dissector table "chdlctype", for Cisco HDLC packet types
(they're *almost* the same as Ethernet types, but 0x8035 is SLARP, not
Reverse ARP, and 0x2000 is the Cisco Discovery protocol, for example),
replacing "fr.chdlc".

Have a "chdlctype()" routine, similar to "ethertype()", used both by the
Cisco HDLC and Frame Relay dissectors.  Have a "chdlc_vals[]"
"value_string" table for Cisco HDLC types and protocol names.  Split the
packet type field in the Frame Relay dissector into separate SNAP and
Cisco HDLC fields, and give them the Ethernet type and Cisco HDLC type
"value_string" tables, respectively.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3133 f5534014-38df-0310-8fa8-9805f1628bb7
17 files changed:
Makefile.am
Makefile.nmake
capture.c
packet-aarp.c
packet-atalk.c
packet-cdp.c
packet-chdlc.c [new file with mode: 0644]
packet-chdlc.h [new file with mode: 0644]
packet-dec-bpdu.c
packet-fr.c
packet-ip.c
packet-ipx.c
packet-ppp.c
ppptypes.h
wiretap/libpcap.c
wiretap/wtap.c
wiretap/wtap.h