+ if (!cm->cdp_protocol_registered)
+ {
+ /*
+ * Dynamically register the cdp input node
+ * with the snap classifier
+ */
+ snap_register_input_protocol (vm, "cdp-input",
+ 0xC /* ieee_oui, Cisco */ ,
+ 0x2000 /* protocol CDP */ ,
+ cdp_input_node.index);
+
+ snap_register_input_protocol (vm, "cdp-input",
+ 0xC /* ieee_oui, Cisco */ ,
+ 0x2004 /* protocol CDP */ ,
+ cdp_input_node.index);
+#if 0
+ /*
+ * Keep this code for reference...
+ * Register with the hdlc classifier
+ */
+ hdlc_register_input_protocol (vm, HDLC_PROTOCOL_cdp,
+ cdp_input_node.index);
+#endif
+ /* with ethernet input (for SRP) */
+ ethernet_register_input_type (vm, ETHERNET_TYPE_CDP /* CDP */ ,
+ cdp_input_node.index);
+ cm->cdp_protocol_registered = 1;
+ }