summaryrefslogtreecommitdiff
path: root/epan/exported_pdu.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-05-06 16:31:29 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-05-06 16:31:29 +0000
commit05ed1f519954574f2ced1bd5113e528574c90918 (patch)
tree322964352d1adbda4ba226f64ebf192045726d44 /epan/exported_pdu.h
parent1ab65e71464732c987f43d32c1e46723966a0073 (diff)
downloadwireshark-05ed1f519954574f2ced1bd5113e528574c90918.tar.gz
Add missing files.
svn path=/trunk/; revision=49185
Diffstat (limited to 'epan/exported_pdu.h')
-rw-r--r--epan/exported_pdu.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/epan/exported_pdu.h b/epan/exported_pdu.h
index ec19f4dbbf..a1c88970c1 100644
--- a/epan/exported_pdu.h
+++ b/epan/exported_pdu.h
@@ -83,3 +83,34 @@ typedef struct _exp_pdu_data_t {
int tvb_length;
tvbuff_t *pdu_tvb;
} exp_pdu_data_t;
+
+#define EXP_PDU_TAG_IP_SRC_BIT 0x00000001
+#define EXP_PDU_TAG_IP_DST_BIT 0x00000002
+
+#define EXP_PDU_TAG_SRC_PORT_BIT 0x00000004
+#define EXP_PDU_TAG_DST_PORT_BIT 0x00000008
+
+#define EXP_PDU_TAG_SCTP_PPID_BIT 0x00000010
+
+#define EXP_PDU_TAG_SS7_OPC_BIT 0x00000020
+#define EXP_PDU_TAG_SS7_DPC_BIT 0x00000040
+
+#define EXP_PDU_TAG_IPV4_SRC_LEN 4
+#define EXP_PDU_TAG_IPV4_DST_LEN 4
+#define EXP_PDU_TAG_IPV6_SRC_LEN 16
+#define EXP_PDU_TAG_IPV6_DST_LEN 16
+
+#define EXP_PDU_TAG_SRC_PORT_LEN 4
+#define EXP_PDU_TAG_DST_PORT_LEN 4
+
+#define EXP_PDU_TAG_SCTP_PPID_LEN 2
+
+#define EXP_PDU_TAG_SS7_OPC_LEN 2
+#define EXP_PDU_TAG_SS7_DPC_LEN 2
+
+/**
+ * Allcotates and fills the exp_pdu_data_t struct according to the wanted_exp_tags
+ * bit_fileld, if proto_name is != NULL, wtap_encap must be -1 or viceversa
+ */
+WS_DLL_PUBLIC exp_pdu_data_t *load_export_pdu_tags(packet_info *pinfo,
+ const char* proto_name, int wtap_encap, guint32 wanted_exp_tags);