File: rtp.h

package info (click to toggle)
ipgrab 0.8.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 540 kB
  • ctags: 555
  • sloc: ansic: 4,608; sh: 1,507; makefile: 120
file content (36 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**************************************************************************** 
** File: rtp.h
**
** Author: Mike Borella
**
** Comments: Structure of RTP packets
**
*****************************************************************************/

/*
 * Static part of RTP header
 */

typedef struct _RtpHdr
{
#if defined(WORDS_BIGENDIAN)
  u_int16_t payload_type:7,
            marker:1,
            csrc_count:4,
            extension:1,
            padding:1,
            version:2;
#else
  u_int16_t version:2,
            padding:1,
            extension:1,
            csrc_count:4,
            marker:1,
            payload_type:7;
#endif
  u_int16_t seqno;
  u_int32_t timestamp;
  u_int32_t ssrc;
  
} RtpHdr;