ROHC compression/decompression library
Classes | Functions
ip_id.h File Reference

IP-ID decompression routines. More...

#include "wlsb.h"
Include dependency graph for ip_id.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  d_ip_id_decode
 Defines a IP-ID object to help computing the IP-ID value from an IP-ID offset. More...

Functions

void d_ip_id_init (struct d_ip_id_decode *s, int id_ref, int sn_ref)
 Initialize an IP-ID object.
int d_ip_id_decode (struct d_ip_id_decode *s, int m, int length, int sn)
 Decode the IP-ID offset in a ROHC packet and compute the associated IP-ID.
void d_ip_id_update (struct d_ip_id_decode *s, int id_ref, int sn_ref)
 Update the reference values for the IP-ID and the SN.

Detailed Description

IP-ID decompression routines.

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

Function Documentation

int d_ip_id_decode ( struct d_ip_id_decode s,
int  m,
int  k,
int  sn 
)

Decode the IP-ID offset in a ROHC packet and compute the associated IP-ID.

Parameters:
sThe IP-ID object
mThe IP-ID offset
kThe number of bits used to code the IP-ID offset
snThe SN of the ROHC packet that contains the IP-ID offset
Returns:
The computed IP-ID

References f(), d_ip_id_decode::id_ref, and d_ip_id_decode::sn_ref.

Referenced by do_decode_uo0_and_uo1(), and do_decode_uor2().

void d_ip_id_init ( struct d_ip_id_decode s,
int  id_ref,
int  sn_ref 
)

Initialize an IP-ID object.

Parameters:
sThe IP-ID object to initialize
id_refThe IP-ID reference
sn_refThe reference Sequence Number (SN)

References d_ip_id_decode::id_ref, and d_ip_id_decode::sn_ref.

Referenced by ip_decode_dynamic_ip(), and rtp_decode_dynamic_rtp().

void d_ip_id_update ( struct d_ip_id_decode s,
int  id_ref,
int  sn_ref 
)

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

Parameters:
sThe IP-ID object
id_refThe new IP-ID reference
sn_refThe new SN reference

References d_ip_id_decode::id_ref, and d_ip_id_decode::sn_ref.

Referenced by act_on_crc_failure(), decode_uo0(), decode_uo1(), and decode_uor2().