summaryrefslogtreecommitdiff
path: root/epan/exported_pdu.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-06-24 12:21:42 -0700
committerPascal Quantin <pascal.quantin@gmail.com>2015-06-25 00:10:13 +0000
commitcdc7d2500469fe9cfe84d805957b8c3644cc27a1 (patch)
tree21d29e9a312dab0c72b7f9f82f23b56c015d7cf6 /epan/exported_pdu.c
parentf5b09f2c8af8d3f21adc89b2f19c47cdff65f775 (diff)
downloadwireshark-cdc7d2500469fe9cfe84d805957b8c3644cc27a1.tar.gz
Add ability to export PDUs for heuristic dissectors also
Change-Id: I1bf1aa9794f9b4f106edffd4986fc0b1014522fa Reviewed-on: https://code.wireshark.org/review/9099 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/exported_pdu.c')
-rw-r--r--epan/exported_pdu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/exported_pdu.c b/epan/exported_pdu.c
index a4cb7076b3..84ac43ef41 100644
--- a/epan/exported_pdu.c
+++ b/epan/exported_pdu.c
@@ -36,12 +36,13 @@ GSList *export_pdu_tap_name_list = NULL;
/**
* Allocates and fills the exp_pdu_data_t struct according to the wanted_exp_tags
* bit field of wanted_exp_tags_len bytes length
- * If proto_name is != NULL, wtap_encap must be -1 or vice-versa
+ * tag_type should be either EXP_PDU_TAG_PROTO_NAME or EXP_PDU_TAG_HEUR_PROTO_NAME
+ * proto_name interpretation depends on tag_type value
*
* The tags in the tag buffer SHOULD be added in numerical order.
*/
exp_pdu_data_t *
-load_export_pdu_tags(packet_info *pinfo, const char* proto_name, int wtap_encap _U_,
+load_export_pdu_tags(packet_info *pinfo, guint tag_type, const char* proto_name,
guint8 *wanted_exp_tags, guint16 wanted_exp_tags_len)
{
exp_pdu_data_t *exp_pdu_data;
@@ -130,7 +131,7 @@ load_export_pdu_tags(packet_info *pinfo, const char* proto_name, int wtap_encap
if(proto_name){
exp_pdu_data->tlv_buffer[i] = 0;
i++;
- exp_pdu_data->tlv_buffer[i] = EXP_PDU_TAG_PROTO_NAME;
+ exp_pdu_data->tlv_buffer[i] = tag_type;
i++;
exp_pdu_data->tlv_buffer[i] = 0;
i++;