27 #ifndef ROHC_DECOMP_IP_ID_OFFSET_H
28 #define ROHC_DECOMP_IP_ID_OFFSET_H
35 # include <linux/types.h>
52 __attribute__((nonnull(1)));
59 uint16_t *
const decoded)
60 __attribute__((nonnull(1, 6), warn_unused_result));
63 const uint16_t id_ref,
64 const uint32_t sn_ref,
65 const bool keep_ref_minus_1)
66 __attribute__((nonnull(1)));
Defines a IP-ID object to help computing the IP-ID value from an IP-ID offset.
Definition: decomp/schemes/ip_id_offset.c:41
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:143
Window-based Least Significant Bits (W-LSB) decoding.
void ip_id_offset_free(struct ip_id_offset_decode *const ipid)
Destroy a given Offset IP-ID decoding context.
Definition: decomp/schemes/ip_id_offset.c:93
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:112
rohc_lsb_ref_t
Definition: decomp_wlsb.h:47
struct ip_id_offset_decode * ip_id_offset_new(void)
Create a new Offset IP-ID decoding context.
Definition: decomp/schemes/ip_id_offset.c:61