ROHC compression/decompression library
Functions
rohc_packets.c File Reference

Descriptions of ROHC packets and extensions. More...

#include "rohc_packets.h"
#include <assert.h>
#include <string.h>
Include dependency graph for rohc_packets.c:

Functions

const char * rohc_get_packet_descr (const rohc_packet_t packet_type)
 Give a description for the given type of ROHC packet. More...
 
const char * rohc_get_ext_descr (const rohc_ext_t ext_type)
 Give a description for the given type of ROHC extension. More...
 
rohc_packet_t rohc_get_packet_type (const char *const packet_id)
 Get the packet type from a packet identifier. More...
 
bool rohc_packet_is_ir (const rohc_packet_t packet_type)
 Is the packet one IR, IR-DYN or IR-CR packet? More...
 
bool rohc_packet_carry_static_info (const rohc_packet_t packet_type)
 Does packet type carry static information? More...
 
bool rohc_packet_carry_crc_7_or_8 (const rohc_packet_t packet_type)
 Does packet type carry 7- or 8-bit CRC? More...
 

Detailed Description

Descriptions of ROHC packets and extensions.

Author
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Function Documentation

◆ rohc_packet_carry_crc_7_or_8()

bool rohc_packet_carry_crc_7_or_8 ( const rohc_packet_t  packet_type)

Does packet type carry 7- or 8-bit CRC?

Parameters
packet_typeThe type of packet
Returns
true if packet carries 7- or 8-bit CRC, false if it does not

◆ rohc_packet_carry_static_info()

bool rohc_packet_carry_static_info ( const rohc_packet_t  packet_type)

Does packet type carry static information?

Parameters
packet_typeThe type of packet
Returns
true if packet carries static information, false if it does not

◆ rohc_packet_is_ir()

bool rohc_packet_is_ir ( const rohc_packet_t  packet_type)

Is the packet one IR, IR-DYN or IR-CR packet?

Parameters
packet_typeThe type of packet
Returns
true if packet is IR, IR-DYN or IR-CR, false if it does not