ROHC compression/decompression library
|
Handle encoding of TCP TimeStamp (TS) option. More...
Functions | |
bool | c_tcp_ts_lsb_code (const struct rohc_comp_ctxt *const context, const uint32_t timestamp, const uint8_t bytes_nr, uint8_t *const rohc_data, const size_t rohc_max_len, size_t *const rohc_len) |
Compress the TimeStamp option value. More... | |
Handle encoding of TCP TimeStamp (TS) option.
bool c_tcp_ts_lsb_code | ( | const struct rohc_comp_ctxt *const | context, |
const uint32_t | timestamp, | ||
const uint8_t | bytes_nr, | ||
uint8_t *const | rohc_data, | ||
const size_t | rohc_max_len, | ||
size_t *const | rohc_len | ||
) |
Compress the TimeStamp option value.
See RFC4996 page 65
context | The compression context | |
timestamp | The timestamp value to compress | |
bytes_nr | The number of bytes to use for encoding | |
[out] | rohc_data | The ROHC packet being built |
rohc_max_len | The max remaining length in the ROHC buffer | |
[out] | rohc_len | The length appended in the ROHC buffer |