summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-sip.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-sip.h')
-rw-r--r--epan/dissectors/packet-sip.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sip.h b/epan/dissectors/packet-sip.h
new file mode 100644
index 00000000..32000888
--- /dev/null
+++ b/epan/dissectors/packet-sip.h
@@ -0,0 +1,48 @@
+/* packet-sip.h
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef __PACKET_SIP_H__
+#define __PACKET_SIP_H__
+
+#include <epan/packet.h>
+
+typedef struct _sip_info_value_t
+{
+ const guint8 *request_method;
+ guint response_code;
+ gboolean resend;
+ guint32 setup_time;
+ /* added for VoIP calls analysis, see ui/voip_calls.c*/
+ gchar *tap_call_id;
+ gchar *tap_from_addr;
+ gchar *tap_to_addr;
+ guint32 tap_cseq_number;
+ gchar *reason_phrase;
+} sip_info_value_t;
+
+typedef enum {
+ SIP_PROTO_OTHER = 0,
+ SIP_PROTO_SIP = 1,
+ SIP_PROTO_Q850 = 2
+} sip_reason_code_proto_t;
+
+typedef struct _sip_reason_code_info_t
+{
+ sip_reason_code_proto_t protocol_type_num;
+ guint cause_value;
+} sip_reason_code_info_t;
+
+WS_DLL_PUBLIC const value_string sip_response_code_vals[];
+
+extern void dfilter_store_sip_from_addr(tvbuff_t *tvb, proto_tree *tree,
+ guint parameter_offset, guint parameter_len);
+
+extern void dissect_sip_p_access_network_info_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint start_offset, gint line_end_offset);
+
+#endif