Handle encoding of TCP TimeStamp (TS) option. More...
#include "tcp_ts.h"#include <string.h>
Functions | |
| bool | c_tcp_ts_lsb_code (const struct rohc_comp_ctxt *const context, const uint32_t timestamp, const size_t nr_bits_minus_1, const size_t nr_bits_0x40000, const size_t nr_bits_0x4000000, uint8_t *const rohc_data, const size_t rohc_max_len, size_t *const rohc_len) |
| Compress the TimeStamp option value. | |
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 size_t | nr_bits_minus_1, | |||
| const size_t | nr_bits_0x40000, | |||
| const size_t | nr_bits_0x4000000, | |||
| 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 | |
| nr_bits_minus_1 | The minimal number of required bits for p = -1 | |
| nr_bits_0x40000 | The minimal number of required bits for p = 0x40000 | |
| nr_bits_0x4000000 | The minimal number of required bits for p = 0x4000000 | |
| [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 |
1.6.1