From cd0aa7de71b4f514879b8fc40c57665bbf93c0cd Mon Sep 17 00:00:00 2001 From: Marco Trinelli Date: Thu, 8 Apr 2021 11:33:02 +0200 Subject: [HICN-696] packethicn: add support for native hicn and fix find wireshark for macOS Allow wireshark to parse native hicn traffic (decode IPv6 traffic as HICN, by default) Fix find_package(wireshark) for macOS, to automatically find wireshark sources in macOS Signed-off-by: Marco Trinelli Change-Id: I95599a894b91685ab1f274b1fa8d75efe6b96178 Signed-off-by: Marco Trinelli --- extras/packethicn/packet-hicn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extras/packethicn/packet-hicn.c') diff --git a/extras/packethicn/packet-hicn.c b/extras/packethicn/packet-hicn.c index 55ea8747d..c17252bb7 100644 --- a/extras/packethicn/packet-hicn.c +++ b/extras/packethicn/packet-hicn.c @@ -21,6 +21,7 @@ #include "config.h" #include "epan/proto.h" +#include "epan/etypes.h" #include @@ -233,7 +234,9 @@ proto_reg_handoff_hicn(void) static dissector_handle_t hicn_handle; hicn_handle = create_dissector_handle(dissect_hicn, proto_hicn); + dissector_add_uint("udp.port", HICN_PORT, hicn_handle); + dissector_add_uint("ethertype", ETHERTYPE_IPv6, hicn_handle); } void plugin_register(void) -- cgit 1.2.3-korg