rtp_recv.c File Reference

#include "rtp.h"
#include "rtpptdefs.h"
#include "bufferpool.h"

Include dependency graph for rtp_recv.c:

Go to the source code of this file.

Functions

static int rtp_hdr_val_chk (rtp_pkt *pkt, int len)
static void rtp_init_seq (rtp_ssrc *stm_src, uint16_t seq)
void rtp_update_seq (rtp_ssrc *stm_src, uint16_t seq)
int rtp_recv (rtp_session *rtp_sess)


Detailed Description

This file contains the functions that perform packet reception and validity check.

Definition in file rtp_recv.c.


Function Documentation

static int rtp_hdr_val_chk ( rtp_pkt pkt,
int  len 
) [static]

Checks if the RTP header is valid for the given packet

Parameters:
pkt Pointer to the packet
len Length of the packet
Returns:
0 if the header is valid, 1 otherwise

Definition at line 39 of file rtp_recv.c.

References rtp_pkt::pad, rtp_pkt::pt, and rtp_pkt::ver.

Referenced by rtp_recv().

static void rtp_init_seq ( rtp_ssrc *  stm_src,
uint16_t  seq 
) [static]

Initializes informations about sequence numbers for the given source using the given seq number as the first one. And appends the source to the list of active sources for the given RTP session.

Parameters:
stm_src The source for which to initialize the sequence numbers informations
seq The first sequence number

Definition at line 90 of file rtp_recv.c.

Referenced by rtp_update_seq().

void rtp_update_seq ( rtp_ssrc *  stm_src,
uint16_t  seq 
)

Updates informations about sequence numbers for the given source. Sets max sequence number, initializes the sequence numbers and calls rtp_init if it is the first received sequence number, checks for misordered packets/jumps

Parameters:
stm_src The source for which to update the sequence numbers informations
seq The sequence number to analyze

Definition at line 119 of file rtp_recv.c.

References rtp_init_seq().

Referenced by rtp_recv().

Here is the call graph for this function:


Generated on Tue Feb 3 03:10:02 2009 for libnemesi by  doxygen 1.5.4