blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
A.2 RTCP Header Validity Checks Connected: An Internet Encyclopedia
A.2 RTCP Header Validity Checks

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1889
Up: A. Algorithms
Prev: A.1 RTP Data Header Validity Checks
Next: A.3 Determining the Number of RTP Packets Expected and Lost

A.2 RTCP Header Validity Checks

A.2 RTCP Header Validity Checks

The following checks can be applied to RTCP packets.

  • RTP version field must equal 2.

  • The payload type field of the first RTCP packet in a compound packet must be equal to SR or RR.

  • The padding bit (P) should be zero for the first packet of a compound RTCP packet because only the last should possibly need padding.

  • The length fields of the individual RTCP packets must total to the overall length of the compound RTCP packet as received. This is a fairly strong check.

The code fragment below performs all of these checks. The packet type is not checked for subsequent packets since unknown packet types may be present and should be ignored.

       u_int32 len;        /* length of compound RTCP packet in words */
       rtcp_t *r;          /* RTCP header */
       rtcp_t *end;        /* end of compound RTCP packet */

       if ((*(u_int16 *)r & RTCP_VALID_MASK) != RTCP_VALID_VALUE) {
           /* something wrong with packet format */
       }
       end = (rtcp_t *)((u_int32 *)r + len);

       do r = (rtcp_t *)((u_int32 *)r + r->common.length + 1);
       while (r < end && r->common.version == 2);

       if (r != end) {
           /* something wrong with packet format */
       }


Next: A.3 Determining the Number of RTP Packets Expected and Lost

Connected: An Internet Encyclopedia
A.2 RTCP Header Validity Checks

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609