ROHC compression/decompression library
Functions
rohc_decomp_detect_packet.h File Reference

Functions related to packet detection. More...

#include "dllexport.h"
#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_EXPORT rohc_decomp_packet_is_segment (const uint8_t *const data)
 Find out whether the field is a segment field or not.
bool ROHC_EXPORT rohc_decomp_packet_is_padding (const uint8_t *const data)
 Find out whether the field is a padding field or not.
bool ROHC_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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:
dataThe ROHC packet to analyze
lenThe length of the ROHC packet
Returns:
Whether the ROHC packet is an IR packet or not
bool ROHC_EXPORT 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:
dataThe ROHC packet to analyze
lenThe length of the ROHC packet
Returns:
Whether the ROHC packet is an IR-DYN packet or not
bool ROHC_EXPORT rohc_decomp_packet_is_padding ( const uint8_t *const  data)

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

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

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

Parameters:
dataThe field to analyze
Returns:
Whether the field is a segment field or not
bool ROHC_EXPORT 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:
dataThe ROHC packet to analyze
lenThe length of the ROHC packet
Returns:
Whether the ROHC packet is an UO-0 packet or not
bool ROHC_EXPORT 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:
dataThe ROHC packet to analyze
lenThe length of the ROHC packet
Returns:
Whether the ROHC packet is an UO-1* packet or not
bool ROHC_EXPORT 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:
dataThe ROHC packet to analyze
lenThe length of the ROHC packet
Returns:
Whether the ROHC packet is an UO-1-TS packet or not
bool ROHC_EXPORT 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:
dataThe ROHC packet to analyze
lenThe length of the ROHC packet
Returns:
Whether the ROHC packet is an UOR-2* packet or not
bool ROHC_EXPORT 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:
dataThe ROHC packet to analyze
data_lenThe length of the ROHC packet
large_cid_lenThe length of the optional large CID field
Returns:
Whether the ROHC packet is an UOR-2-TS packet or not