ROHC compression/decompression library
c_tcp_replicate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Didier Barvaux
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /**
20  * @file c_tcp_replicate.h
21  * @brief Handle the replicate chain of the TCP compression profile
22  * @author Didier Barvaux <didier@barvaux.org>
23  */
24 
25 #ifndef ROHC_COMP_TCP_REPLICATE_H
26 #define ROHC_COMP_TCP_REPLICATE_H
27 
28 #include "rohc_comp_internals.h"
29 #include "ip.h"
30 
31 #include <stdint.h>
32 #include <stdlib.h>
33 
34 int tcp_code_replicate_chain(struct rohc_comp_ctxt *const context,
35  const struct ip_packet *const ip,
36  uint8_t *const rohc_pkt,
37  const size_t rohc_pkt_max_len,
38  size_t *const parsed_len)
39  __attribute__((warn_unused_result, nonnull(1, 2, 3, 5)));
40 
41 #endif /* ROHC_COMP_TCP_REPLICATE_H */
42 
Internal structures for ROHC compression.
The ROHC compression context.
Definition: rohc_comp_internals.h:326
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet.
Definition: ip.h:77
int tcp_code_replicate_chain(struct rohc_comp_ctxt *const context, const struct ip_packet *const ip, uint8_t *const rohc_pkt, const size_t rohc_pkt_max_len, size_t *const parsed_len)
Code the replicate chain of an IR packet.
Definition: c_tcp_replicate.c:74