diff options
-rw-r--r-- | epan/dissectors/packet-nordic_ble.c | 2 | ||||
-rw-r--r-- | wiretap/pcap-common.c | 3 | ||||
-rw-r--r-- | wiretap/wtap.c | 3 | ||||
-rw-r--r-- | wiretap/wtap.h | 1 |
4 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-nordic_ble.c b/epan/dissectors/packet-nordic_ble.c index 497da3877a..ebed42736f 100644 --- a/epan/dissectors/packet-nordic_ble.c +++ b/epan/dissectors/packet-nordic_ble.c @@ -120,6 +120,7 @@ #include <epan/proto_data.h> #include <wsutil/utf8_entities.h> +#include <wiretap/wtap.h> #include "packet-btle.h" @@ -568,6 +569,7 @@ proto_reg_handoff_nordic_ble(void) debug_handle = find_dissector("nordic_debug"); dissector_add_for_decode_as_with_preference("udp.port", nordic_ble_handle); + dissector_add_uint("wtap_encap", WTAP_ENCAP_NORDIC_BLE, nordic_ble_handle); } diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c index f0300a5241..dc428834bc 100644 --- a/wiretap/pcap-common.c +++ b/wiretap/pcap-common.c @@ -462,6 +462,9 @@ static const struct { /* Linux vsock */ { 271, WTAP_ENCAP_VSOCK }, + /* Nordic BLE Sniffer */ + { 272, WTAP_ENCAP_NORDIC_BLE }, + /* * To repeat: * diff --git a/wiretap/wtap.c b/wiretap/wtap.c index d7c858fc77..d0447b921e 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -929,6 +929,9 @@ static struct encap_type_info encap_table_base[] = { /* Linux vsock */ { "Linux vsock", "vsock" }, + + /* Nordic BLE Sniffer */ + { "Nordic BLE Sniffer", "nordic_ble" }, }; WS_DLL_LOCAL diff --git a/wiretap/wtap.h b/wiretap/wtap.h index a067d85fe0..19bf22b5bf 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -273,6 +273,7 @@ extern "C" { #define WTAP_ENCAP_LORATAP 183 #define WTAP_ENCAP_3MB_ETHERNET 184 #define WTAP_ENCAP_VSOCK 185 +#define WTAP_ENCAP_NORDIC_BLE 186 /* After adding new item here, please also add new item to encap_table_base array */ #define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types() |