aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iso14443.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-iso14443.c')
-rw-r--r--epan/dissectors/packet-iso14443.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iso14443.c b/epan/dissectors/packet-iso14443.c
index 5ca135c33c..68d904faeb 100644
--- a/epan/dissectors/packet-iso14443.c
+++ b/epan/dissectors/packet-iso14443.c
@@ -41,6 +41,7 @@
#include <epan/expert.h>
#include <epan/packet.h>
#include <epan/tfs.h>
+#include <wiretap/wtap.h>
/* Proximity Integrated Circuit Card, i.e. the smartcard */
#define ADDR_PICC "PICC"
@@ -122,6 +123,8 @@ void proto_reg_handoff_iso14443(void);
static int proto_iso14443 = -1;
+static dissector_handle_t iso14443_handle;
+
static dissector_table_t iso14443_cmd_type_table;
static int ett_iso14443 = -1;
@@ -1066,7 +1069,8 @@ proto_register_iso14443(void)
"iso14443.cmd_type", "ISO14443 Command Type",
FT_UINT8, BASE_DEC, DISSECTOR_TABLE_ALLOW_DUPLICATE);
- new_register_dissector("iso14443", dissect_iso14443, proto_iso14443);
+ iso14443_handle =
+ new_register_dissector("iso14443", dissect_iso14443, proto_iso14443);
transactions = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope());
}
@@ -1077,6 +1081,8 @@ proto_reg_handoff_iso14443(void)
{
dissector_handle_t cmd_type_handle;
+ dissector_add_uint("wtap_encap", WTAP_ENCAP_ISO14443, iso14443_handle);
+
cmd_type_handle = new_create_dissector_handle(
dissect_iso14443_cmd_type_wupa, proto_iso14443);
dissector_add_uint("iso14443.cmd_type", CMD_TYPE_WUPA, cmd_type_handle);