ROHC compression/decompression library
Functions | Variables
ip_id_offset_decode.h File Reference

Offset IP-ID decoding. More...

#include "lsb_decode.h"
#include "dllexport.h"
#include <stdint.h>
Include dependency graph for ip_id_offset_decode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct ip_id_offset_decode
*ROHC_EXPORT 
ip_id_offset_new (void)
 Create a new Offset IP-ID decoding context.
void ROHC_EXPORT ip_id_offset_free (struct ip_id_offset_decode *const ipid) __attribute__((nonnull(1)))
 Destroy a given Offset IP-ID decoding context.
bool ROHC_EXPORT ip_id_offset_decode (const struct ip_id_offset_decode *const ipid, const uint16_t m, const size_t k, const uint32_t sn, uint16_t *const decoded) __attribute__((nonnull(1
void ROHC_EXPORT ip_id_offset_set_ref (struct ip_id_offset_decode *const ipid, const uint16_t id_ref, const uint32_t sn_ref) __attribute__((nonnull(1)))
 Update the reference values for the IP-ID and the SN.

Variables

bool ROHC_EXPORT warn_unused_result

Detailed Description

Offset IP-ID decoding.

Author:
Didier Barvaux <didier.barvaux@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>
The hackers from ROHC for Linux

Function Documentation

bool ROHC_EXPORT ip_id_offset_decode ( const struct ip_id_offset_decode *const  ipid,
const uint16_t  m,
const size_t  k,
const uint32_t  sn,
uint16_t *const  decoded 
)
void ROHC_EXPORT ip_id_offset_free ( struct ip_id_offset_decode *const  ipid)

Destroy a given Offset IP-ID decoding context.

See 4.5.5 in the RFC 3095 for details about Offset IP-ID encoding.

Parameters:
ipidThe Offset IP-ID decoding context to destroy

References ip_id_offset_decode::lsb, and rohc_lsb_free().

Referenced by d_generic_create(), and d_generic_destroy().

Create a new Offset IP-ID decoding context.

See 4.5.5 in the RFC 3095 for details about Offset IP-ID encoding.

Returns:
The new Offset IP-ID decoding context in case of success, NULL otherwise

References ip_id_offset_decode::lsb, rohc_lsb_new(), and ROHC_LSB_SHIFT_IP_ID.

Referenced by d_generic_create().

void ROHC_EXPORT ip_id_offset_set_ref ( struct ip_id_offset_decode *const  ipid,
const uint16_t  id_ref,
const uint32_t  sn_ref 
)

Update the reference values for the IP-ID and the SN.

Parameters:
ipidThe Offset IP-ID decoding object
id_refThe new IP-ID reference
sn_refThe new SN reference

References ip_id_offset_decode::lsb, and rohc_lsb_set_ref().


Variable Documentation