ROHC compression/decompression library
|
IP-ID decompression routines. More...
#include "ip_id.h"
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 k, 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. |
IP-ID decompression routines.
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.
s | The IP-ID object |
m | The IP-ID offset |
k | The number of bits used to code the IP-ID offset |
sn | The SN of the ROHC packet that contains the IP-ID offset |
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.
s | The IP-ID object to initialize |
id_ref | The IP-ID reference |
sn_ref | The 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.
s | The IP-ID object |
id_ref | The new IP-ID reference |
sn_ref | The 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().