ROHC compression/decompression library
d_tcp_irregular.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 d_tcp_irregular.c
23  * @brief Handle the irregular chain of the TCP decompression profile
24  * @author FWX <rohc_team@dialine.fr>
25  * @author Didier Barvaux <didier@barvaux.org>
26  * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
27  */
28 
29 #ifndef ROHC_DECOMP_TCP_IRREGULAR_H
30 #define ROHC_DECOMP_TCP_IRREGULAR_H
31 
32 #include "rohc_decomp_internals.h"
33 #include "d_tcp_defines.h"
34 
35 #include <stdbool.h>
36 #include <stdint.h>
37 #include <stdlib.h>
38 
39 bool tcp_parse_irreg_chain(const struct rohc_decomp_ctxt *const context,
40  const uint8_t *const rohc_packet,
41  const size_t rohc_length,
42  const tcp_ip_id_behavior_t innermost_ip_id_behavior,
43  struct rohc_tcp_extr_bits *const bits,
44  size_t *const parsed_len)
45  __attribute__((warn_unused_result, nonnull(1, 2, 5, 6)));
46 
47 #endif /* ROHC_DECOMP_TCP_IRREGULAR_H */
48 
bool tcp_parse_irreg_chain(const struct rohc_decomp_ctxt *const context, const uint8_t *const rohc_packet, const size_t rohc_length, const tcp_ip_id_behavior_t innermost_ip_id_behavior, struct rohc_tcp_extr_bits *const bits, size_t *const parsed_len)
Parse the irregular chain of the ROHC packet.
Definition: d_tcp_irregular.c:92
Main definitions for the TCP decompression profile.
Internal structures for ROHC decompression.
The ROHC decompression context.
Definition: rohc_decomp_internals.h:274
tcp_ip_id_behavior_t
Definition: tcp.h:245
Definition: d_tcp_defines.h:362