aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dec-bpdu.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-14 08:25:14 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-14 08:25:14 +0000
commit691d4f9a0fb78b685db54caa54f58b5b558e76c9 (patch)
tree8aa4ade50167e6d32a08a98a8d73e9d7774f76b5 /packet-dec-bpdu.c
parente7d080a8c643c7d1635ece2fbf162c29eefea8a3 (diff)
Add the PPP types for the DEC LANBridge100 Spanning Tree protocol and
for "Bridging PDU"s (which I'm assuming are 802.1d Spanning Tree BPDUs), and have the STP and LANBridge100 STP dissectors register them with the "ppp.protocol" dissector table. Fix the value for the PPP type for MPLS Multicast (it's 0x0283, not 0x0281). svn path=/trunk/; revision=2896
Diffstat (limited to 'packet-dec-bpdu.c')
-rw-r--r--packet-dec-bpdu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/packet-dec-bpdu.c b/packet-dec-bpdu.c
index a41bd9ff47..11eff73ed0 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.4 2001/01/09 06:31:35 guy Exp $
+ * $Id: packet-dec-bpdu.c,v 1.5 2001/01/14 08:25:14 guy Exp $
*
* Copyright 2001 Paul Ionescu <paul@acorp.ro>
*
@@ -43,6 +43,7 @@
#include "packet.h"
#include "resolv.h"
#include "etypes.h"
+#include "ppptypes.h"
/* Offsets of fields within a BPDU */
@@ -157,7 +158,8 @@ proto_register_dec_bpdu(void)
&ett_dec_bpdu,
};
- proto_dec_bpdu = proto_register_protocol("DEC Spanning Tree Protocol", "DEC_STP", "dec_stp");
+ proto_dec_bpdu = proto_register_protocol("DEC Spanning Tree Protocol",
+ "DEC_STP", "dec_stp");
proto_register_subtree_array(ett, array_length(ett));
}
@@ -166,4 +168,6 @@ proto_reg_handoff_dec_bpdu(void)
{
dissector_add("ethertype", ETHERTYPE_DEC_LB, dissect_dec_bpdu,
proto_dec_bpdu);
+ dissector_add("ppp.protocol", PPP_DEC_LB, dissect_dec_bpdu,
+ proto_dec_bpdu);
}