ROHC compression/decompression library
Defines | Functions
rohc_add_cid.c File Reference

Functions related to ROHC add-CID. More...

#include "rohc_add_cid.h"
#include "rohc_bit_ops.h"
Include dependency graph for rohc_add_cid.c:

Defines

#define ROHC_ADD_CID   0xe
 The magic bits to find out whether a ROHC packet starts with an add-CID byte or not.

Functions

bool rohc_add_cid_is_present (const uint8_t *const data)
 Check whether a ROHC packet starts with an add-CID byte or not.
uint8_t rohc_add_cid_decode (const uint8_t *const data)
 Decode the add-CID byte of a ROHC packet (if the add-CID byte is present)

Detailed Description

Functions related to ROHC add-CID.

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

Define Documentation

#define ROHC_ADD_CID   0xe

The magic bits to find out whether a ROHC packet starts with an add-CID byte or not.


Function Documentation

uint8_t rohc_add_cid_decode ( const uint8_t *const  data)

Decode the add-CID byte of a ROHC packet (if the add-CID byte is present)

Parameters:
dataThe ROHC packet with a possible add-CID byte
Returns:
0 if no add-CID byte is present, the CID value otherwise
bool rohc_add_cid_is_present ( const uint8_t *const  data)

Check whether a ROHC packet starts with an add-CID byte or not.

Parameters:
dataThe ROHC packet with a possible add-CID byte
Returns:
Whether the ROHC packet starts with an add-CID byte or not