tcp_ts.c File Reference

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

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

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>
Didier Barvaux <didier.barvaux@toulouse.viveris.com>

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