Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-sip.h
1 /* packet-sip.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PACKET_SIP_H__
11 #define __PACKET_SIP_H__
12 
13 #include <epan/packet.h>
14 
15 typedef struct _sip_info_value_t
16 {
17  const guint8 *request_method;
18  guint response_code;
19  gboolean resend;
20  guint32 setup_time;
21  /* added for VoIP calls analysis, see ui/voip_calls.c*/
22  gchar *tap_call_id;
23  gchar *tap_from_addr;
24  gchar *tap_to_addr;
25  guint32 tap_cseq_number;
26  gchar *reason_phrase;
28 
29 typedef enum {
30  SIP_PROTO_OTHER = 0,
31  SIP_PROTO_SIP = 1,
32  SIP_PROTO_Q850 = 2
33 } sip_reason_code_proto_t;
34 
36 {
37  sip_reason_code_proto_t protocol_type_num;
38  guint cause_value;
40 
41 WS_DLL_PUBLIC const value_string sip_response_code_vals[];
42 
43 extern void dfilter_store_sip_from_addr(tvbuff_t *tvb, proto_tree *tree,
44  guint parameter_offset, guint parameter_len);
45 
46 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);
47 
48 #endif
Definition: packet_info.h:44
Definition: proto.h:904
Definition: packet-sip.h:16
Definition: packet-sip.h:36
Definition: value_string.h:26
Definition: tvbuff-int.h:35