ROHC compression/decompression library
Functions
decomp/schemes/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. 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
Didier Barvaux didie.nosp@m.r.ba.nosp@m.rvaux.nosp@m.@tou.nosp@m.louse.nosp@m..viv.nosp@m.eris..nosp@m.com

Function Documentation

◆ d_tcp_ts_lsb_parse()

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