This file is indexed.

/usr/include/sipxtapi/rtcp/RTPHeader.h is in libsipxtapi-dev 3.3.0~test17-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
//
// Copyright (C) 2006-2013 SIPez LLC.  All rights reserved.
//
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp.  All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////



//  Border Guard
#ifndef _RTPHeader_h
#define _RTPHeader_h

#include "rtcp/RtcpConfig.h"

//  Includes
#include "IRTPHeader.h"

//  Defines
#define MAX_CSRCS   64


/**
 *
 * Class Name:  CRTPHeader
 *
 * Inheritance: CBaseClass       - Generic Base Class
 *
 *
 * Interfaces:  IRTPHeader       - RTP Header Interface
 *
 * Description: The CRTPHeader Class coordinates the creation of RTP Headers
 *              given a well formed RTP packet received from the network.
 *              It also provides services for the extraction of information
 *              contained within an RTP packet header.
 *
 * Notes:       CRTPHeader is derived from CBaseClass which provides basic
 *              Initialization and reference counting support.
 *
 */
class CRTPHeader: public IRTPHeader  // RTP Header Interface
 {

//  Public Methods
public:

/**
 *
 * Method Name:  CRTPHeader() - Constructor
 *
 *
 * Inputs:   ssrc_t ulSSRC
 *           unsigned char* puchHeaderData
 *           unsigned long ulPacketLength - length of buffer content passed
 *
 * Outputs:  None
 *
 * Returns:  None
 *
 * Description:  Performs routine CRTPHeader object initialization.
 *
 * Usage Notes:  A CRTPHeader object shall be created by the CRTPSource with
 *               this constructor if allocated on the fly.
 *
 *
 */
    CRTPHeader(ssrc_t ulSSRC = 0,
               unsigned char *puchHeaderData=NULL,
               unsigned long ulPacketLength=0);



/**
 *
 * Method Name: ~CRTPHeader() - Destructor
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  None
 *
 * Description: Shall deallocated and/or release all resources which was
 *              acquired over the course of runtime.
 *
 * Usage Notes:
 *
 *
 */
    ~CRTPHeader(void);



/**
 *
 * Method Name:  ParseRTPHeader
 *
 *
 * Inputs:   unsigned char  *puchRTPBuffer  - Buffer containing RTP Packet
 *           unsigned long   ulPacketLength - length of buffer content passed
 *
 * Outputs:  None
 *
 * Returns:  unsigned long
 *
 * Description: Parse an RTP network packet into an Report header.
 *              Some basic check will be performed to determine whether the
 *              packet is valid.
 *
 * Usage Notes: A buffer of sufficient size should be allocated and passed to
 *              this parsing method.
 *
 *
 */
    unsigned long ParseRTPHeader(unsigned char *puchRTPBuffer,
                                 unsigned long ulPacketLength=0);

/**
 *
 * Method Name:  FormatRTPHeader
 *
 *
 * Inputs:   unsigned char  *puchRTPBuffer  - Buffer containing RTP Packet
 *           unsigned long  ulPacketLength  - length of buffer content passed
 *
 * Outputs:  None
 *
 * Returns:  unsigned long
 *
 * Description: Constructs an RTP Report header using information passed in
 *              the RTP character buffer.  Some basic check will be performed
 *              to determine whether the packet is valid.
 *
 * Usage Notes: A buffer of sufficient size should be allocated and passed to
 *              this formatting method.
 *
 *
 */
    unsigned long FormatRTPHeader(unsigned char *puchRTPBuffer,
                                  unsigned long ulPacketLength=0);

/**
 *
 * Method Name:  GetHeaderLength
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long  - Returns the size of the RTP Header
 *
 * Description: Retrieves the size of the RTP Header that preceeds the payload.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetHeaderLength(void);


/**
 *
 * Method Name:  GetVersion
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long  - Returns the Version
 *
 * Description: Retrieves the Version attribute stored within the object.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetVersion(void);


/**
 *
 * Method Name: GetPadding
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long - Padding Flag
 *
 * Description: Returns the padding flag value from the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetPadding(void);

/**
 *
 * Method Name: GetExtension
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long - - Header Extension Flag
 *
 * Description: Returns the header extension flag from the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetExtension(void);


/**
 *
 * Method Name: GetMarker
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long  - Marker Flag
 *
 * Description: Returns the marker flag value associated with the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetMarker(void);


/**
 *
 * Method Name:  GetPayload
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long   - Returns the Payload Type
 *
 * Description: Retrieves the payload type from this RTP report.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetPayload(void);


/**
 *
 * Method Name: GetSequenceNo
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  unsigned long - Packet Sequence Number
 *
 * Description: Returns the sequence number value from the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetSequenceNo(void);

/**
 *
 * Method Name: GetRTPTimestamp
 *
 *
 * Inputs:   None
 *
 * Outputs:  rtpts_t *pulTimestamp    - RTP Packet Timestamp
 *
 * Returns:  void
 *
 * Description: Returns the timestamp value associated with the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    void GetRTPTimestamp(rtpts_t *pulTimestamp);

/**
 *
 * Method Name: GetRecvTimestamp
 *
 *
 * Inputs:   None
 *
 * Outputs:  rtpts_t *pulTimestamp    - Packet Receive Timestamp
 *
 * Returns:  void
 *
 * Description: Returns the timestamp value associated with the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    void GetRecvTimestamp(rtpts_t *pulTimestamp);


/**
 *
 * Method Name: GetSSRC
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  ssrc_t - Packet Source Identifier
 *
 * Description: Returns the SSRC value associated with the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    ssrc_t GetSSRC(void);


/**
 *
 * Method Name:  GetCSRC
 *
 *
 * Inputs:   bool bNBO - TRUE implies data should be represented in NBO format
 *
 * Outputs:  ssrc_t *paulCSRC
 *                           - Contributing Source Identifier(s) Array pointer
 *
 * Returns:  unsigned long - Number of Contributing Source Identifier(s)
 *
 * Description: Returns the contributing source ID values from the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    unsigned long GetCSRC(ssrc_t *paulCSRC, bool bNBO=FALSE);

/**
 *
 * Method Name: SetPayload
 *
 *
 * Inputs:   unsigned long - Payload Type
 *
 * Outputs:  None
 *
 * Returns:  None
 *
 * Description: Sets the payload type value associated with the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    void SetPayload(unsigned long ulPayload);


/**
 *
 * Method Name: SetSequenceNo
 *
 *
 * Inputs:   unsigned long - Packet Sequence Number
 *
 * Outputs:  None
 *
 * Returns:  None
 *
 * Description: Sets the sequence number value associated with the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    void SetSequenceNo(unsigned long ulSequenceNo);

/**
 *
 * Method Name: SetRecvTimestamp
 *
 *
 * Inputs:   rtpts_t ulTimestamp - Packet Receive Timestamp
 *
 * Outputs:  None
 *
 * Returns:  void
 *
 * Description: Sets the receive timestamp values for the RTP packet.
 *
 * Usage Notes:
 *
 *
 */
    void SetRecvTimestamp(rtpts_t ulTimestamp);


private:   // Private Methods


/**
 *
 * Method Name: ResetContents
 *
 *
 * Inputs:   None
 *
 * Outputs:  None
 *
 * Returns:  void
 *
 * Description: Resets the contetn of the RTP header object except for the
 *              version number and SSRC.  This method allows a user to
 *              re-use RTP Header objects.
 *
 * Usage Notes: This method allows a user to re-use RTP Header objects.
 *
 *
 */
    void ResetContents(void);


private:        // Protected Data Members



/**
 *
 * Attribute Name:  m_ulVersion
 *
 * Type:            unsigned long
 *
 * Description:     The protocol version of the RTP Report.
 *
 */
      unsigned long m_ulVersion;

/**
 *
 * Attribute Name:  m_ulPadding
 *
 * Type:            unsigned long
 *
 * Description:  A flag identifying the use of padding within an RTP report.
 *
 */
      unsigned long m_ulPadding;


/**
 *
 * Attribute Name:   m_ulMarker
 *
 * Type:            unsigned long
 *
 * Description:     A flag identifying the use of the marker bit within
 *                  an RTP report.
 *
 */
      unsigned long m_ulMarker;

/**
 *
 * Attribute Name:  m_ulExtension
 *
 * Type:            unsigned long
 *
 * Description:     A flag identifying the use of header extensions within
 *                  an RTP report.
 *
 */
      unsigned long m_ulExtension;


/**
 *
 * Attribute Name:  m_ulPayload
 *
 * Type:            unsigned long
 *
 * Description:     The RTP Payload type.
 *
 */
      unsigned long m_ulPayload;


/**
 *
 * Attribute Name:  m_ulSequenceNo
 *
 * Type:            unsigned long
 *
 * Description:     The RTP Sequence Number.
 *
 */
      unsigned long m_ulSequenceNo;


/**
 *
 * Attribute Name:  m_ulRTPTimestamp
 *
 * Type:            rtpts_t
 *
 * Description:     The RTP Timestamp; aka, the timestamp when the FE sent
 *                  the packet
 *
 */
      rtpts_t m_ulRTPTimestamp;

/**
 *
 * Attribute Name:  m_ulRecvTimestamp
 *
 * Type:            rtpts_t
 *
 * Description:     The RTP Recv Timestamp; aka, when the RTP pakcet was
 *                  actually received on our system
 *
 */
      rtpts_t m_ulRecvTimestamp;


/**
 *
 * Attribute Name:  m_ulSSRC
 *
 * Type:            ssrc_t
 *
 * Description:     This member shall store the SSRC ID of the
 *                  associated RTP connection.
 *
 */
      ssrc_t m_ulSSRC;

/**
 *
 * Attribute Name:  m_ulCSRCCount
 *
 * Type:            unsigned long
 *
 * Description:     The number of CSRCs contained with an RTP report.
 *
 */
      unsigned long m_ulCSRCCount;

/**
 *
 * Attribute Name:  m_aulCSRC
 *
 * Type:            unsigned long
 *
 * Description:     The CSRCs contained with an RTP report.
 *
 */
      ssrc_t m_aulCSRC[MAX_CSRCS];

};


#endif