25 #ifndef ROHC_COMMON_INTERVAL_H 26 #define ROHC_COMMON_INTERVAL_H 28 #include <rohc/rohc.h> 35 #define ROHC_WLSB_WIDTH_MAX 64U 50 #define ROHC_LSB_SHIFT_TCP_TS_1B ROHC_LSB_SHIFT_SN 51 #define ROHC_LSB_SHIFT_TCP_TS_2B ROHC_LSB_SHIFT_SN 54 #define ROHC_LSB_SHIFT_TCP_ACK_SCALED ROHC_LSB_SHIFT_TCP_TTL 136 __attribute__((warn_unused_result,
const));
141 __attribute__((warn_unused_result, const));
145 __attribute__((warn_unused_result,
const));
148 __attribute__((warn_unused_result,
const));
168 computed_p = (k <= 2 ? 0 : (1 << (k - 2)) - 1);
173 computed_p = (k <= 4 ? 1 : (1 << (k - 5)) - 1);
int32_t rohc_interval_get_rfc5225_msn_p(const size_t k, rohc_reordering_offset_t reorder_ratio)
Get shift parameter p from number of bytes k and reorder ratio.
Definition: interval.c:90
rohc_lsb_shift_t
the different values of the shift parameter of the LSB algorithm
Definition: interval.h:47
Definition: interval.h:60
uint16_t min
Definition: interval.h:104
Definition: interval.h:63
rohc_reordering_offset_t
The different values of reordering offset.
Definition: rohc.h:203
Definition: interval.h:55
Definition: interval.h:62
An interval of 8-bit values.
Definition: interval.h:81
static int32_t rohc_interval_compute_p(const size_t k, const rohc_lsb_shift_t p)
Compute the shift parameter p for the f function.
Definition: interval.h:159
Definition: interval.h:52
An interval of 32-bit values.
Definition: interval.h:123
uint8_t max
Definition: interval.h:84
Definition: interval.h:56
int32_t rohc_interval_get_rfc5225_id_id_p(const size_t k)
Get shift parameter p from number of bytes k for ip_id_lsb.
Definition: interval.c:124
uint8_t min
Definition: interval.h:83
struct rohc_interval32 rohc_f_32bits(const uint32_t v_ref, const size_t k, const rohc_lsb_shift_t p)
The f function as defined in LSB encoding for 32-bit fields.
Definition: interval.c:48
Definition: interval.h:57
Definition: interval.h:61
Definition: interval.h:58
Definition: interval.h:53
uint32_t max
Definition: interval.h:126
An interval of 16-bit values.
Definition: interval.h:102
uint16_t max
Definition: interval.h:105
uint32_t min
Definition: interval.h:125
Definition: interval.h:59
Definition: interval.h:49