ROHC compression/decompression library
|
ROHC decompression context for the IP-only profile. More...
#include "d_generic.h"
Go to the source code of this file.
Functions | |
rohc_packet_t | ip_detect_packet_type (struct rohc_decomp *decomp, struct d_context *context, const unsigned char *packet, const size_t rohc_length, const size_t large_cid_len) |
Detect the type of ROHC packet for IP-based non-RTP profiles. | |
int | ip_parse_dynamic_ip (struct d_generic_context *context, const unsigned char *packet, unsigned int length, struct rohc_extr_bits *const bits) |
Parse the IP dynamic part of the ROHC packet. |
ROHC decompression context for the IP-only profile.
rohc_packet_t ip_detect_packet_type | ( | struct rohc_decomp * | decomp, |
struct d_context * | context, | ||
const unsigned char * | packet, | ||
const size_t | rohc_length, | ||
const size_t | large_cid_len | ||
) |
Detect the type of ROHC packet for IP-based non-RTP profiles.
decomp | The ROHC decompressor |
context | The decompression context |
packet | The ROHC packet |
rohc_length | The length of the ROHC packet |
large_cid_len | The length of the optional large CID field |
References d_is_ir(), d_is_irdyn(), d_is_uo0(), d_is_uo1(), d_is_uor2(), PACKET_IR, PACKET_IR_DYN, PACKET_UNKNOWN, PACKET_UO_0, PACKET_UO_1, PACKET_UOR_2, and rohc_debugf.
Referenced by d_ip_create(), and d_udp_create().
int ip_parse_dynamic_ip | ( | struct d_generic_context * | context, |
const unsigned char * | packet, | ||
unsigned int | length, | ||
struct rohc_extr_bits *const | bits | ||
) |
Parse the IP dynamic part of the ROHC packet.
context | The generic decompression context |
packet | The ROHC packet to parse |
length | The length of the ROHC packet |
bits | OUT: The bits extracted from the ROHC header |
References GET_NEXT_16_BITS, PACKET_IR, PACKET_IR_DYN, d_generic_context::packet_type, rohc_debugf, rohc_extr_bits::sn, and rohc_extr_bits::sn_nr.
Referenced by d_ip_create().