Allow Dissect As... to select the Ethernet-without-FCS dissector for a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 27 Aug 2010 21:13:26 +0000 (21:13 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 27 Aug 2010 21:13:26 +0000 (21:13 +0000)
given UDP port; this is to handle the output for the Cisco CMTS "cable
intercept" command - it encapsulates Ethernet frames in UDP packets, but
the UDP port is user-defined.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33964 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-eth.c

index 8b48559609d9e10969bcdc8ca8e0e528d01c91e8..e824ebee74a50e49457ecc4c2f6d83714952af1f 100644 (file)
@@ -658,4 +658,11 @@ proto_reg_handoff_eth(void)
        dissector_add("ethertype", ETHERTYPE_ETHBRIDGE, eth_withoutfcs_handle);
        dissector_add("chdlctype", ETHERTYPE_ETHBRIDGE, eth_withoutfcs_handle);
        dissector_add("gre.proto", ETHERTYPE_ETHBRIDGE, eth_withoutfcs_handle);
+
+       /*
+        * This is to handle the output for the Cisco CMTS "cable intercept"
+        * command - it encapsulates Ethernet frames in UDP packets, but
+        * the UDP port is user-defined.
+        */
+       dissector_add_handle("udp.port", eth_withoutfcs_handle);
 }