aboutsummaryrefslogtreecommitdiffstats
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
parent1ab65e71464732c987f43d32c1e46723966a0073 (diff)
Add missing files.
svn path=/trunk/; revision=49185
-rw-r--r--epan/CMakeLists.txt1
-rw-r--r--epan/Makefile.common1
-rw-r--r--epan/exported_pdu.h31
3 files changed, 33 insertions, 0 deletions
diff --git a/epan/CMakeLists.txt b/epan/CMakeLists.txt
index f7447f65dc..57f6677564 100644
--- a/epan/CMakeLists.txt
+++ b/epan/CMakeLists.txt
@@ -1420,6 +1420,7 @@ set(LIBWIRESHARK_FILES
ex-opt.c
except.c
expert.c
+ exported_pdu.c
filesystem.c
filter_expressions.c
follow.c
diff --git a/epan/Makefile.common b/epan/Makefile.common
index db1e52a8ff..a538f15dda 100644
--- a/epan/Makefile.common
+++ b/epan/Makefile.common
@@ -49,6 +49,7 @@ LIBWIRESHARK_SRC = \
ex-opt.c \
except.c \
expert.c \
+ exported_pdu.c \
filesystem.c \
filter_expressions.c \
follow.c \
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);