ROHC compression/decompression library
ipv6_exts.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Viveris Technologies
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 comp/schemes/ipv6_exts.h
21  * @brief Compression schemes for IPv6 extension headers
22  * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
23  */
24 
25 #ifndef ROHC_COMP_SCHEMES_IPV6_EXTS_H
26 #define ROHC_COMP_SCHEMES_IPV6_EXTS_H
27 
28 #include "rohc_comp_internals.h"
29 
30 #include <stdint.h>
31 #include <stdbool.h>
32 
33 
34 /*
35  * Prototypes of functions that may used by other ROHC modules
36  */
37 
38 bool rohc_comp_ipv6_exts_are_acceptable(const struct rohc_comp *const comp,
39  uint8_t *const next_proto,
40  const uint8_t *const exts,
41  const size_t max_exts_len,
42  size_t *const exts_len)
43  __attribute__((warn_unused_result, nonnull(1, 2, 3, 5)));
44 
45 
46 #endif
47 
The ROHC compressor.
Definition: rohc_comp_internals.h:129
Internal structures for ROHC compression.
bool rohc_comp_ipv6_exts_are_acceptable(const struct rohc_comp *const comp, uint8_t *const next_proto, const uint8_t *const exts, const size_t max_exts_len, size_t *const exts_len)
Whether IPv6 extension headers are acceptable or not.
Definition: ipv6_exts.c:55