From 7ecac8fbd047f9bfaefd05287e1e6916c3d85bd9 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 15 Mar 2001 09:11:03 +0000 Subject: 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 --- packet-dec-bpdu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packet-dec-bpdu.c') 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 * @@ -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); } -- cgit v1.2.3