ROHC compression/decompression library
Functions
decomp/schemes/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. More...
 

Detailed Description

Handle decoding of TCP TimeStamp (TS) option.

Author
FWX rohc_.nosp@m.team.nosp@m.@dial.nosp@m.ine..nosp@m.fr
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..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
contextThe decompression context
dataThe data to decode
data_lenThe length of the data to decode
[out]ts_fieldThe information of TS option field extracted from packet
Returns
The number of data bytes parsed, -1 if data is malformed