tcp_ts.h File Reference

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

#include "rohc_decomp_internals.h"
#include "decomp_wlsb.h"
#include <stdlib.h>
#include <stdint.h>
Include dependency graph for decomp/schemes/tcp_ts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int d_tcp_ts_lsb_parse (const struct rohc_decomp_ctxt *const context, const uint8_t *const data, const size_t data_len, struct rohc_lsb_field32 *const ts_field)
 Parse the LSBs bits of one of the TS echo request/reply fields.

Detailed Description

Handle decoding of TCP TimeStamp (TS) option.

Author:
FWX <rohc_team@dialine.fr>
Didier Barvaux <didier@barvaux.org>

Function Documentation

int d_tcp_ts_lsb_parse ( const struct rohc_decomp_ctxt *const   context,
const uint8_t *const   data,
const size_t  data_len,
struct rohc_lsb_field32 *const   ts_field 
)

Parse the LSBs bits of one of the TS echo request/reply fields.

See RFC4996 page 65

Parameters:
context The decompression context
data The data to decode
data_len The length of the data to decode
[out] ts_field The information of TS option field extracted from packet
Returns:
The number of data bytes parsed, -1 if data is malformed

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