Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
packet-sdp.h
1/* packet-sdp.h
2 * Routines for SDP packet disassembly (RFC 2327)
3 *
4 * Jason Lango <jal@netapp.com>
5 * Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu>
6 * 2005 Alejandro Vaquero <alejandro.vaquero@verso.com>, add support for tap
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 */
14
15#ifndef __PACKET_SDP_H__
16#define __PACKET_SDP_H__
17
18typedef struct _sdp_packet_info {
19 char summary_str[50]; /* SDP summary string for VoIP calls graph analysis */
21
22enum sdp_exchange_type
23{
24 SDP_EXCHANGE_OFFER = 0,
25 SDP_EXCHANGE_ANSWER_ACCEPT,
26 SDP_EXCHANGE_ANSWER_REJECT
27};
28
29enum sdp_trace_id_hf_type
30{
31 SDP_TRACE_ID_HF_TYPE_STR = 0, /* */
32 SDP_TRACE_ID_HF_TYPE_UINT32 /* */
33};
34
35/*
36 * Information needed to set up a trace id in RTP(t ex SIP CallId )
37 */
38#define SDP_INFO_OFFSET 10 /* Max number of SDP data occurrences in a single frame */
39
40typedef struct _sdp_setup_info {
41 int hf_id; /* Header field to use */
42 enum sdp_trace_id_hf_type hf_type; /* Indicates which of the following variables to use( add uint32_t etc as needed)*/
43 bool add_hidden;
44 bool is_osmux;
45 union {
46 char *str; /* The trace id if the hf_type is str */
47 uint32_t num; /* Numerical trace id */
48 } trace_id;
49 const char* base_uri; /* For RTSP, URIs in the control field can be relative to this. */
51
52/* opaque outside packet-rtp.c */
54
56sdp_get_rtsp_media_desc(const char *control_uri);
57
58extern void setup_sdp_transport(tvbuff_t *tvb, packet_info *pinfo, enum sdp_exchange_type type, int request_frame, const bool delay, sdp_setup_info_t *setup_info);
59/* Handles duplicate OFFER packets so they don't end up processed by dissect_sdp(). This can probably
60 * be removed when all higher layer dissectors properly handle SDP themselves with setup_sdp_transport()
61 */
62extern void setup_sdp_transport_resend(int current_frame, int request_frame);
63
64#endif /* __PACKET_SDP_H__ */
Definition packet_info.h:43
Definition packet-rtp.c:136
Definition packet-sdp.h:18
Definition packet-sdp.h:40
Definition packet-cp2179.c:206
Definition tvbuff-int.h:35