27 #ifndef ROHC_DECOMP_IP_ID_OFFSET_H 28 #define ROHC_DECOMP_IP_ID_OFFSET_H 57 __attribute__((nonnull(1)));
64 uint16_t *
const decoded)
65 __attribute__((nonnull(1, 6), warn_unused_result));
68 const uint16_t id_ref,
69 const uint32_t sn_ref,
70 const bool keep_ref_minus_1)
71 __attribute__((nonnull(1)));
void ip_id_offset_init(struct ip_id_offset_decode *const ipid)
Create a new Offset IP-ID decoding context.
Definition: decomp/schemes/ip_id_offset.c:45
The Least Significant Bits (LSB) decoding object.
Definition: decomp_wlsb.h:57
struct rohc_lsb_decode lsb
Definition: decomp/schemes/ip_id_offset.h:48
Defines a IP-ID object to help computing the IP-ID value from an IP-ID offset.
Definition: decomp/schemes/ip_id_offset.h:45
void ip_id_offset_set_ref(struct ip_id_offset_decode *const ipid, const uint16_t id_ref, const uint32_t sn_ref, const bool keep_ref_minus_1)
Update the reference values for the IP-ID and the SN.
Definition: decomp/schemes/ip_id_offset.c:94
Window-based Least Significant Bits (W-LSB) decoding.
bool ip_id_offset_decode(const struct ip_id_offset_decode *const ipid, const rohc_lsb_ref_t ref_type, const uint16_t m, const size_t k, const uint32_t sn, uint16_t *const decoded)
Decode the given IP-ID offset.
Definition: decomp/schemes/ip_id_offset.c:63
rohc_lsb_ref_t
Definition: decomp_wlsb.h:43