tcp_sack.h File Reference

Handle encoding of TCP Selective ACKnowledgement (SACK) option. More...

#include "rohc_comp_internals.h"
#include "protocols/tcp.h"
#include <stddef.h>
#include <stdint.h>
Include dependency graph for comp/schemes/tcp_sack.h:

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.

Detailed Description

Handle encoding of TCP Selective ACKnowledgement (SACK) option.

Author:
Didier Barvaux <didier@barvaux.org>

Function Documentation

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)

Parameters:
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
Returns:
The length appended in the ROHC buffer if positive, -1 in case of error

Generated on 4 Jul 2018 for ROHC compression/decompression library by  doxygen 1.6.1