aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dec-bpdu.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-03-15 09:11:03 +0000
committerGuy Harris <guy@alum.mit.edu>2001-03-15 09:11:03 +0000
commit7ecac8fbd047f9bfaefd05287e1e6916c3d85bd9 (patch)
treecf8e3945012163e0e15fde35c4e967ef6ebd56c6 /packet-dec-bpdu.c
parent56d199c7ff62eab6b942177adf69ff0a2392707b (diff)
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. svn path=/trunk/; revision=3133
Diffstat (limited to 'packet-dec-bpdu.c')
-rw-r--r--packet-dec-bpdu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-dec-bpdu.c b/packet-dec-bpdu.c
index 9bb850f0dc..5a1b0ef7d7 100644
--- a/packet-dec-bpdu.c
+++ b/packet-dec-bpdu.c
@@ -1,7 +1,7 @@
/* packet-dec-bpdu.c
* Routines for DEC BPDU (DEC Spanning Tree Protocol) disassembly
*
- * $Id: packet-dec-bpdu.c,v 1.6 2001/01/25 06:14:14 guy Exp $
+ * $Id: packet-dec-bpdu.c,v 1.7 2001/03/15 09:11:00 guy Exp $
*
* Copyright 2001 Paul Ionescu <paul@acorp.ro>
*
@@ -167,6 +167,8 @@ proto_reg_handoff_dec_bpdu(void)
{
dissector_add("ethertype", ETHERTYPE_DEC_LB, dissect_dec_bpdu,
proto_dec_bpdu);
+ dissector_add("chdlctype", ETHERTYPE_DEC_LB, dissect_dec_bpdu,
+ proto_dec_bpdu);
dissector_add("ppp.protocol", PPP_DEC_LB, dissect_dec_bpdu,
proto_dec_bpdu);
}