|
| typedef std::vector< uint32_t > | csrc_ids_type |
| |
| typedef std::vector< uint32_t > | extension_header_data_type |
| |
| enum | endian_type { BE
, LE
} |
| |
| enum | PDUType {
RAW
, ETHERNET_II
, IEEE802_3
, DOT3 = IEEE802_3
,
RADIOTAP
, DOT11
, DOT11_ACK
, DOT11_ASSOC_REQ
,
DOT11_ASSOC_RESP
, DOT11_AUTH
, DOT11_BEACON
, DOT11_BLOCK_ACK
,
DOT11_BLOCK_ACK_REQ
, DOT11_CF_END
, DOT11_DATA
, DOT11_CONTROL
,
DOT11_DEAUTH
, DOT11_DIASSOC
, DOT11_END_CF_ACK
, DOT11_MANAGEMENT
,
DOT11_PROBE_REQ
, DOT11_PROBE_RESP
, DOT11_PS_POLL
, DOT11_REASSOC_REQ
,
DOT11_REASSOC_RESP
, DOT11_RTS
, DOT11_QOS_DATA
, LLC
,
SNAP
, IP
, ARP
, TCP
,
UDP
, ICMP
, BOOTP
, DHCP
,
EAPOL
, RC4EAPOL
, RSNEAPOL
, DNS
,
LOOPBACK
, IPv6
, ICMPv6
, SLL
,
DHCPv6
, DOT1AD
, DOT1Q
, PPPOE
,
STP
, PPI
, IPSEC_AH
, IPSEC_ESP
,
PKTAP
, MPLS
, DOT11_CONTROL_TA
, VXLAN
,
RTP
, UNKNOWN = 999
, USER_DEFINED_PDU = 1000
} |
| | Enum which identifies each type of PDU. More...
|
| |
| typedef byte_array | serialization_type |
| |
|
| | RTP () |
| |
| | RTP (const uint8_t *data, uint32_t size) |
| | Constructs a RTP object from a buffer.
|
| |
|
small_uint< 2 > | version () const |
| | Getter for the version.
|
| |
|
small_uint< 1 > | padding_bit () const |
| | Getter for the padding bit.
|
| |
|
small_uint< 1 > | extension_bit () const |
| | Getter for the extension bit.
|
| |
|
small_uint< 4 > | csrc_count () const |
| | Getter for the CSRC count.
|
| |
|
small_uint< 1 > | marker_bit () const |
| | Getter for the marker bit.
|
| |
|
small_uint< 7 > | payload_type () const |
| | Getter for the payload type.
|
| |
|
uint16_t | sequence_number () const |
| | Getter for the sequence number.
|
| |
|
uint32_t | timestamp () const |
| | Getter for the timestamp.
|
| |
|
uint32_t | ssrc_id () const |
| | Getter for the SSRC identifier.
|
| |
|
const csrc_ids_type & | csrc_ids () const |
| | Getter for the CSRC identifiers.
|
| |
|
uint8_t | padding_size () const |
| | Getter for the padding size.
|
| |
|
uint16_t | extension_profile () const |
| | Getter for the extension header profile.
|
| |
|
uint16_t | extension_length () const |
| | Getter for the extension header length.
|
| |
|
const extension_header_data_type & | extension_data () const |
| | Getter for the extension header data.
|
| |
| void | version (small_uint< 2 > version) |
| | Setter for the version.
|
| |
| void | extension_bit (small_uint< 1 > extension) |
| | Setter for the extension bit.
|
| |
| void | marker_bit (small_uint< 1 > marker) |
| | Setter for the marker bit.
|
| |
| void | payload_type (small_uint< 7 > payload_type) |
| | Setter for the payload type.
|
| |
| void | sequence_number (uint16_t seq_num) |
| | Setter for the sequence number.
|
| |
| void | timestamp (uint32_t timestamp) |
| | Setter for the timestamp.
|
| |
| void | ssrc_id (uint32_t ssrc_id) |
| | Setter for the SSRC identifier.
|
| |
| void | padding_size (uint8_t size) |
| | Setter for the padding size.
|
| |
| void | extension_profile (uint16_t profile) |
| | Setter for the extension header profile.
|
| |
| void | add_extension_data (const uint32_t value) |
| | Adds a word of extension header data.
|
| |
| bool | remove_extension_data (const uint32_t value) |
| | Removes a word of extension header data.
|
| |
| bool | search_extension_data (const uint32_t value) |
| | Searches for extension header data that matches the given value.
|
| |
| void | add_csrc_id (const uint32_t csrc_id) |
| | Adds a CSRC identifier.
|
| |
| bool | remove_csrc_id (const uint32_t value) |
| | Removes a CSRC identifier.
|
| |
| bool | search_csrc_id (const uint32_t value) |
| | Searches for a CSRC identifier that matches the given value.
|
| |
| uint32_t | header_size () const |
| | Returns the RTP packet's header length.
|
| |
| uint32_t | trailer_size () const |
| | Returns the RTP packet's trailer length.
|
| |
| PDUType | pdu_type () const |
| | Getter for the PDU's type.
|
| |
| RTP * | clone () const |
| |
|
| PDU () |
| | Default constructor.
|
| |
| | PDU (PDU &&rhs) TINS_NOEXCEPT |
| | Move constructor.
|
| |
| PDU & | operator= (PDU &&rhs) TINS_NOEXCEPT |
| | Move assignment operator.
|
| |
| virtual | ~PDU () |
| | PDU destructor.
|
| |
| uint32_t | size () const |
| | The whole chain of PDU's size, including this one.
|
| |
| virtual uint32_t | advertised_size () const |
| | The whole chain of PDU's advertised size, including this one.
|
| |
| PDU * | inner_pdu () const |
| | Getter for the inner PDU.
|
| |
| PDU * | parent_pdu () const |
| |
| PDU * | release_inner_pdu () |
| | Releases the inner PDU.
|
| |
| void | inner_pdu (PDU *next_pdu) |
| | Sets the child PDU.
|
| |
| void | inner_pdu (const PDU &next_pdu) |
| | Sets the child PDU.
|
| |
| serialization_type | serialize () |
| | Serializes the whole chain of PDU's, including this one.
|
| |
| template<typename T> |
| T * | find_pdu (PDUType type=T::pdu_flag) |
| | Finds and returns the first PDU that matches the given flag.
|
| |
| template<typename T> |
| const T * | find_pdu (PDUType type=T::pdu_flag) const |
| | Finds and returns the first PDU that matches the given flag.
|
| |
| template<typename T> |
| T & | rfind_pdu (PDUType type=T::pdu_flag) |
| | Finds and returns the first PDU that matches the given flag.
|
| |
| template<typename T> |
| const T & | rfind_pdu (PDUType type=T::pdu_flag) const |
| | Finds and returns the first PDU that matches the given flag.
|
| |
| virtual void | send (PacketSender &sender, const NetworkInterface &iface) |
| | Send the stack of PDUs through a PacketSender.
|
| |
| virtual PDU * | recv_response (PacketSender &sender, const NetworkInterface &iface) |
| | Receives a matching response for this packet.
|
| |
| virtual bool | matches_response (const uint8_t *ptr, uint32_t total_sz) const |
| | Check whether ptr points to a valid response for this PDU.
|
| |
| virtual bool | matches_flag (PDUType flag) const |
| | Check whether this PDU matches the specified flag.
|
| |
Represents a RTP PDU.
This class represents a RTP PDU.
- See also
- RawPDU