**This is automatically generated documentation.** Edit after the "[[#COMMENTS|COMMENTS]]" heading; changes to the main body will be lost. ====== GetSSRC Element Documentation ====== ===== NAME ===== **GetSSRC** -- Click element; splits packets _possibly_ containing an SSRC field (used by the RTP protocol): this is copied it inside the packet annotation field ===== SYNOPSIS ===== GetSSRC(OFFSET) **Ports**: 1 input, 2 outputs\\ **Processing**: Push\\ **Package**: unibo_qos\\ ===== DESCRIPTION ===== GetSSRC has two output ports. All incoming packets _possibly_ having an SSRC field marked up are directed to output port 0, any remaining packets are emitted on output port 1 (since they cannot absolutely pertain to an RTP flow). ===== EXAMPLES ===== elementclass class_RTP { $ssrc, $dscp | get::GetSSRC($ssrc); rtp::RTPClassifier; set::SetIPDSCP($dscp); input->get[0]->rtp; get[1]->[1]output; rtp[0]->set->[0]output; rtp[1]->[1]output; } In the above example, GetSSRC is used in combination with the [[RTPClassifier]] and [[SetIPDSCP]] elements to hook an RTP flow and mark its packets' DSCP field. ===== ELEMENT HANDLERS ===== ? **SSRC offset in bytes ((write-only))** ! Offset (in bytes) of the SSRC field from the beginning of the Ethernet datagram (50 bytes). See also RFC 3550. ===== SEE ALSO ===== [[RTPClassifier]], [[SetIPDSCP]] Generated by 'click-elem2man' from 'package/getssrc.hh' on 19/May/2006. ===== COMMENTS =====