rohc_decomp_detect_packet.h File Reference

Functions related to packet detection. More...

#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for rohc_decomp_detect_packet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool rohc_decomp_packet_is_segment (const uint8_t *const data)
 Find out whether the field is a segment field or not.
bool rohc_decomp_packet_is_padding (const uint8_t *const data)
 Find out whether the field is a padding field or not.
bool rohc_decomp_packet_is_ir (const uint8_t *const data, const size_t len)
 Find out whether a ROHC packet is an IR packet or not.
bool rohc_decomp_packet_is_irdyn (const uint8_t *const data, const size_t len)
 Find out whether a ROHC packet is an IR-DYN packet or not.
bool rohc_decomp_packet_is_uo0 (const uint8_t *const data, const size_t len)
 Find out whether a ROHC packet is an UO-0 packet or not.
bool rohc_decomp_packet_is_uo1 (const uint8_t *const data, const size_t len)
 Find out whether a ROHC packet is an UO-1* packet or not.
bool rohc_decomp_packet_is_uo1_ts (const uint8_t *const data, const size_t len)
 Find out whether a ROHC packet is an UO-1-TS packet or not.
bool rohc_decomp_packet_is_uor2 (const uint8_t *const data, const size_t len)
 Find out whether a ROHC packet is an UOR-2* packet or not.
bool rohc_decomp_packet_is_uor2_ts (const uint8_t *const data, const size_t data_len, const size_t large_cid_len)
 Find out whether a ROHC packet is an UOR-2-TS packet or not.

Detailed Description

Functions related to packet detection.

Author:
Didier Barvaux <didier.barvaux@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>

Function Documentation

bool rohc_decomp_packet_is_ir ( const uint8_t *const   data,
const size_t  len 
)

Find out whether a ROHC packet is an IR packet or not.

Parameters:
data The ROHC packet to analyze
len The length of the ROHC packet
Returns:
Whether the ROHC packet is an IR packet or not
bool rohc_decomp_packet_is_irdyn ( const uint8_t *const   data,
const size_t  len 
)

Find out whether a ROHC packet is an IR-DYN packet or not.

Parameters:
data The ROHC packet to analyze
len The length of the ROHC packet
Returns:
Whether the ROHC packet is an IR-DYN packet or not
bool rohc_decomp_packet_is_padding ( const uint8_t *const   data  ) 

Find out whether the field is a padding field or not.

Parameters:
data The field to analyze
Returns:
Whether the field is a padding field or not
bool rohc_decomp_packet_is_segment ( const uint8_t *const   data  ) 

Find out whether the field is a segment field or not.

Parameters:
data The field to analyze
Returns:
Whether the field is a segment field or not
bool rohc_decomp_packet_is_uo0 ( const uint8_t *const   data,
const size_t  len 
)

Find out whether a ROHC packet is an UO-0 packet or not.

Parameters:
data The ROHC packet to analyze
len The length of the ROHC packet
Returns:
Whether the ROHC packet is an UO-0 packet or not
bool rohc_decomp_packet_is_uo1 ( const uint8_t *const   data,
const size_t  len 
)

Find out whether a ROHC packet is an UO-1* packet or not.

Parameters:
data The ROHC packet to analyze
len The length of the ROHC packet
Returns:
Whether the ROHC packet is an UO-1* packet or not
bool rohc_decomp_packet_is_uo1_ts ( const uint8_t *const   data,
const size_t  len 
)

Find out whether a ROHC packet is an UO-1-TS packet or not.

Check the T field that discriminates between UO-1-TS and UO-1-ID.

Parameters:
data The ROHC packet to analyze
len The length of the ROHC packet
Returns:
Whether the ROHC packet is an UO-1-TS packet or not
bool rohc_decomp_packet_is_uor2 ( const uint8_t *const   data,
const size_t  len 
)

Find out whether a ROHC packet is an UOR-2* packet or not.

Parameters:
data The ROHC packet to analyze
len The length of the ROHC packet
Returns:
Whether the ROHC packet is an UOR-2* packet or not
bool rohc_decomp_packet_is_uor2_ts ( const uint8_t *const   data,
const size_t  data_len,
const size_t  large_cid_len 
)

Find out whether a ROHC packet is an UOR-2-TS packet or not.

Check the T field that discriminates between UOR-2-TS and UOR-2-ID.

Parameters:
data The ROHC packet to analyze
data_len The length of the ROHC packet
large_cid_len The length of the optional large CID field
Returns:
Whether the ROHC packet is an UOR-2-TS packet or not

Generated on 4 Jul 2018 for ROHC compression/decompression library by  doxygen 1.6.1