From 83dc308f3681a28ee943e771e3b93117901ca231 Mon Sep 17 00:00:00 2001 From: Luke Mewburn Date: Sun, 19 Jul 2015 17:31:46 +1000 Subject: PCLI: Expand protocol support 1. Implement "Decode As" for PCLI payload instead of assuming IP. Currently supported subdissectors are Ethernet and IP. 2. Implement multiple "flavors" of PCLI with different header formats: pcli: 4 byte CCCID pcli8: 8 byte header (including CCCID) pcli12: 4 byte CCCID, 8 byte NTP timestamp pcli20: 4 byte CCCID, 8 byte NTP timestamp, 8 byte case ID All flavors currently using "Decode As" for payload. 3. Optionally append CCCID to protocol item in tree using preference "pcli.summary_in_tree". 4. Obsolete preference "pcli.udp_port". Bug: 9266 Bug: 11220 Change-Id: Ie4bca06665985ef1eb77db767771a5a82357e242 Reviewed-on: https://code.wireshark.org/review/8608 Reviewed-by: Evan Huus Petri-Dish: Evan Huus Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-eth.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/dissectors/packet-eth.c') diff --git a/epan/dissectors/packet-eth.c b/epan/dissectors/packet-eth.c index 36d7eb5558..67cbd76bb2 100644 --- a/epan/dissectors/packet-eth.c +++ b/epan/dissectors/packet-eth.c @@ -1050,6 +1050,8 @@ proto_reg_handoff_eth(void) * the UDP port is user-defined. */ dissector_add_for_decode_as("udp.port", eth_withoutfcs_handle); + + dissector_add_for_decode_as("pcli.payload", eth_withoutfcs_handle); } /* -- cgit v1.2.3