aboutsummaryrefslogtreecommitdiffstats
path: root/extras/packethicn
diff options
context:
space:
mode:
Diffstat (limited to 'extras/packethicn')
-rw-r--r--extras/packethicn/CMakeLists.txt12
-rw-r--r--extras/packethicn/packet-hicn.c3
2 files changed, 12 insertions, 3 deletions
diff --git a/extras/packethicn/CMakeLists.txt b/extras/packethicn/CMakeLists.txt
index f8be36eff..cb168ae1f 100644
--- a/extras/packethicn/CMakeLists.txt
+++ b/extras/packethicn/CMakeLists.txt
@@ -24,7 +24,13 @@ set(CMAKE_MODULE_PATH
set(PACKETHICN packethicn)
-find_package(Wireshark CONFIG REQUIRED)
+if(APPLE)
+ find_package(Wireshark CONFIG REQUIRED
+ PATHS /usr/local/opt/wireshark/lib/wireshark/cmake/ /usr/local/Cellar/wireshark/*/lib/wireshark/cmake
+ )
+else()
+ find_package(Wireshark CONFIG REQUIRED)
+endif()
MATH(EXPR Wireshark_PATCH_NEXT_VERSION "${Wireshark_PATCH_VERSION}+1")
set(Wireshark_NEXT_VERSION ${Wireshark_MAJOR_VERSION}.${Wireshark_MINOR_VERSION}.${Wireshark_PATCH_NEXT_VERSION})
@@ -32,8 +38,8 @@ set(Wireshark_NEXT_VERSION ${Wireshark_MAJOR_VERSION}.${Wireshark_MINOR_VERSION}
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
find_package(Libhicn REQUIRED)
else()
- if (DISABLE_SHARED_LIBRARIES)
- if (WIN32)
+ if(DISABLE_SHARED_LIBRARIES)
+ if(WIN32)
set(HICN_LIBRARIES ${LIBHICN_STATIC})
else()
set(HICN_LIBRARIES ${LIBHICN_STATIC} log)
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 <hicn/hicn.h>
@@ -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)