diff options
author | Erik de Jong <erikdejong@gmail.com> | 2017-06-03 17:22:48 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2017-06-03 20:19:15 +0000 |
commit | 94847961cb009ae35fc33035f108060a5ef2c40e (patch) | |
tree | 275819833479f3f02d301ca47ba843a96f40a34a /wiretap | |
parent | 314a9f217d6992bb18e63c8092b1a0d699873d62 (diff) |
LoRaTap DLT and dissector
Add support for handling LoRaTap (https://github.com/eriknl/LoRaTap) DLT in
wiretap and add dissector for LoRaTap headers.
Exposes Syncword for subdissectors to dissect frame payload.
Change-Id: Ie4ba2189964376938f45eb3da93f2c3376042e85
Reviewed-on: https://code.wireshark.org/review/21915
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/pcap-common.c | 3 | ||||
-rw-r--r-- | wiretap/wtap.c | 3 | ||||
-rw-r--r-- | wiretap/wtap.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c index 0cc3f9d60c..e67cd3956f 100644 --- a/wiretap/pcap-common.c +++ b/wiretap/pcap-common.c @@ -443,6 +443,9 @@ static const struct { /* IBM SDLC frames containing SNA PDUs */ { 268, WTAP_ENCAP_SDLC }, + /* LoRaTap */ + { 270, WTAP_ENCAP_LORATAP }, + /* * To repeat: * diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 2ee507f749..204390be35 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -920,6 +920,9 @@ static struct encap_type_info encap_table_base[] = { /* WTAP_ENCAP_USB_DARWIN */ { "Darwin USB", "darwin-usb" }, + + /* WTAP_ENCAP_LORATAP */ + { "LoRaTap", "loratap"}, }; WS_DLL_LOCAL diff --git a/wiretap/wtap.h b/wiretap/wtap.h index ee68a8eabe..6b60d51d9d 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -270,6 +270,7 @@ extern "C" { #define WTAP_ENCAP_IP_OVER_IB_PCAP 180 #define WTAP_ENCAP_JUNIPER_VN 181 #define WTAP_ENCAP_USB_DARWIN 182 +#define WTAP_ENCAP_LORATAP 183 /* 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() |