ROHC compression/decompression library
|
Handle encoding of TCP Selective ACKnowledgement (SACK) option. More...
Go to the source code of this file.
Functions | |
int | c_tcp_opt_sack_code (const struct rohc_comp_ctxt *const context, const uint32_t ack_value, const sack_block_t *const sack_blocks, const uint8_t length, const bool is_unchanged, uint8_t *const rohc_data, const size_t rohc_max_len) |
Compress one TCP Selective ACKnowledgement (SACK) option. More... | |
Handle encoding of TCP Selective ACKnowledgement (SACK) option.
int c_tcp_opt_sack_code | ( | const struct rohc_comp_ctxt *const | context, |
const uint32_t | ack_value, | ||
const sack_block_t *const | sack_blocks, | ||
const uint8_t | length, | ||
const bool | is_unchanged, | ||
uint8_t *const | rohc_data, | ||
const size_t | rohc_max_len | ||
) |
Compress one TCP Selective ACKnowledgement (SACK) option.
See RFC6846 page 68 (and RFC2018 for Selective Acknowledgement option)
context | The compression context | |
ack_value | The ack value | |
sack_blocks | The SACK blocks to compress | |
length | The length of the SACK blocks | |
is_unchanged | Whether the SACK option is unchanged or not (only for irregular chain, use false for list item) | |
[out] | rohc_data | The ROHC packet being built |
rohc_max_len | The max remaining length in the ROHC buffer |