ROHC compression/decompression library
Functions
comp/schemes/tcp_ts.c File Reference

Handle encoding of TCP TimeStamp (TS) option. More...

#include "tcp_ts.h"
#include "sdvl.h"
#include <string.h>
Include dependency graph for comp/schemes/tcp_ts.c:

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...
 

Detailed Description

Handle encoding of TCP TimeStamp (TS) option.

Author
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Function Documentation

◆ c_tcp_ts_lsb_code()

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

Parameters
contextThe compression context
timestampThe timestamp value to compress
bytes_nrThe number of bytes to use for encoding
[out]rohc_dataThe ROHC packet being built
rohc_max_lenThe max remaining length in the ROHC buffer
[out]rohc_lenThe length appended in the ROHC buffer
Returns
true if compression was successful, false otherwise