summaryrefslogtreecommitdiffstats
path: root/epan/tap-voip.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/tap-voip.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/tap-voip.h')
-rw-r--r--epan/tap-voip.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/epan/tap-voip.h b/epan/tap-voip.h
new file mode 100644
index 00000000..8aa2a346
--- /dev/null
+++ b/epan/tap-voip.h
@@ -0,0 +1,46 @@
+/** @file
+ *
+ * VoIP packet tap interface 2007 Tomas Kukosa
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef _TAP_VOIP_H_
+#define _TAP_VOIP_H_
+
+/* defines voip call state */
+typedef enum _voip_call_state {
+ VOIP_NO_STATE,
+ VOIP_CALL_SETUP,
+ VOIP_RINGING,
+ VOIP_IN_CALL,
+ VOIP_CANCELLED,
+ VOIP_COMPLETED,
+ VOIP_REJECTED,
+ VOIP_UNKNOWN
+} voip_call_state;
+
+typedef enum _voip_call_active_state {
+ VOIP_ACTIVE,
+ VOIP_INACTIVE
+} voip_call_active_state;
+
+/* structure for common/proprietary VoIP calls TAP */
+typedef struct _voip_packet_info_t
+{
+ gchar *protocol_name;
+ gchar *call_id;
+ voip_call_state call_state;
+ voip_call_active_state call_active_state;
+ gchar *from_identity;
+ gchar *to_identity;
+ gchar *call_comment;
+ gchar *frame_label;
+ gchar *frame_comment;
+} voip_packet_info_t;
+
+#endif /* _TAP_VOIP_H_ */