|
ROHC compression/decompression library
|
IP-ID decompression routines. More...
#include <stdlib.h>#include <stdint.h>

Go to the source code of this file.
Data Structures | |
| 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 *const ip_id, const uint16_t ip_id_ref, const uint16_t sn_ref) |
| Initialize an IP-ID object. | |
| int | d_ip_id_decode (const struct d_ip_id_decode *const ip_id, const uint16_t m, const size_t k, const uint16_t sn, uint16_t *const decoded) |
| 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 *const ip_id, const uint16_t id_ref, const uint16_t sn_ref) |
| Update the reference values for the IP-ID and the SN. | |
IP-ID decompression routines.
| int d_ip_id_decode | ( | const struct d_ip_id_decode *const | ip_id, |
| const uint16_t | m, | ||
| const size_t | k, | ||
| const uint16_t | sn, | ||
| uint16_t *const | decoded | ||
| ) |
Decode the IP-ID offset in a ROHC packet and compute the associated IP-ID.
| ip_id | 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 |
| decoded | OUT: The computed IP-ID |
References f(), d_ip_id_decode::id_ref, and d_ip_id_decode::sn_ref.
Referenced by decode_uo0(), decode_uo1(), and decode_uor2().
| void d_ip_id_init | ( | struct d_ip_id_decode *const | ip_id, |
| const uint16_t | id_ref, | ||
| const uint16_t | sn_ref | ||
| ) |
Initialize an IP-ID object.
| ip_id | 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 *const | ip_id, |
| const uint16_t | id_ref, | ||
| const uint16_t | sn_ref | ||
| ) |
Update the reference values for the IP-ID and the SN.
| ip_id | 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 decode_uo0(), decode_uo1(), and decode_uor2().
1.7.6.1