ROHC compression/decompression library
decomp/schemes/tcp_ts.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012,2013,2014 Didier Barvaux
3  * Copyright 2013,2014 Viveris Technologies
4  * Copyright 2012 WBX
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /**
22  * @file decomp/schemes/tcp_ts.h
23  * @brief Handle decoding of TCP TimeStamp (TS) option
24  * @author FWX <rohc_team@dialine.fr>
25  * @author Didier Barvaux <didier@barvaux.org>
26  */
27 
28 #ifndef ROHC_DECOMP_SCHEMES_TCP_TS_H
29 #define ROHC_DECOMP_SCHEMES_TCP_TS_H
30 
31 #include "rohc_decomp_internals.h"
32 #include "decomp_wlsb.h"
33 
34 #include <stdlib.h>
35 #include <stdint.h>
36 
37 int d_tcp_ts_lsb_parse(const struct rohc_decomp_ctxt *const context,
38  const uint8_t *const data,
39  const size_t data_len,
40  struct rohc_lsb_field32 *const ts_field)
41  __attribute__((warn_unused_result, nonnull(1, 2, 4)));
42 
43 #endif /* ROHC_DECOMP_SCHEMES_TCP_TS_H */
44 
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.
Definition: decomp/schemes/tcp_ts.c:50
Internal structures for ROHC decompression.
Window-based Least Significant Bits (W-LSB) decoding.
Definition: decomp_wlsb.h:57
The ROHC decompression context.
Definition: rohc_decomp_internals.h:274