aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-05-06 15:59:16 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-05-06 15:59:16 +0000
commit1ab65e71464732c987f43d32c1e46723966a0073 (patch)
tree714f77141d0adb060d5cefed67fa80c20b246be5 /epan/dissectors/packet-sip.c
parent880fc1ba7fee488d58a3474ae815daeee4b98c4c (diff)
Add a helper function to load tags, handle IP and port tags and
copy packet comments. svn path=/trunk/; revision=49184
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r--epan/dissectors/packet-sip.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c
index 862a423b64..7c54762a21 100644
--- a/epan/dissectors/packet-sip.c
+++ b/epan/dissectors/packet-sip.c
@@ -968,6 +968,7 @@ sip_init_protocol(void)
static void
export_sip_pdu(packet_info *pinfo, tvbuff_t *tvb)
{
+#if 0
exp_pdu_data_t *exp_pdu_data;
exp_pdu_data = (exp_pdu_data_t *)g_malloc(sizeof(exp_pdu_data_t));
@@ -993,6 +994,17 @@ export_sip_pdu(packet_info *pinfo, tvbuff_t *tvb)
exp_pdu_data->tlv_buffer[9] = 0;
exp_pdu_data->tlv_buffer[10] = 0;
exp_pdu_data->tlv_buffer[11] = 0;
+#endif
+ exp_pdu_data_t *exp_pdu_data;
+ guint32 tags_bit_field;
+
+ tags_bit_field = EXP_PDU_TAG_IP_SRC_BIT + EXP_PDU_TAG_IP_DST_BIT + EXP_PDU_TAG_SRC_PORT_BIT+
+ EXP_PDU_TAG_DST_PORT_BIT;
+
+ exp_pdu_data = load_export_pdu_tags(pinfo, "sip", -1, tags_bit_field);
+
+ exp_pdu_data->tvb_length = tvb_length(tvb);
+ exp_pdu_data->pdu_tvb = tvb;
tap_queue_packet(exported_pdu_tap, pinfo, exp_pdu_data);