ROHC compression/decompression library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
comp
schemes
comp/schemes/ip_id_offset.h
Go to the documentation of this file.
1
/*
2
* Copyright 2012,2013 Didier Barvaux
3
* Copyright 2007,2009,2010 Viveris Technologies
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
/**
21
* @file src/comp/schemes/ip_id_offset.h
22
* @brief Offset IP-ID encoding
23
* @author Didier Barvaux <didier@barvaux.org>
24
*/
25
26
#ifndef ROHC_COMP_IP_ID_OFFSET_H
27
#define ROHC_COMP_IP_ID_OFFSET_H
28
29
#include <stdint.h>
30
#ifdef __KERNEL__
31
# include <linux/types.h>
32
#else
33
# include <stdbool.h>
34
#endif
35
36
bool
is_ip_id_increasing
(
const
uint16_t old_id,
const
uint16_t new_id)
37
__attribute__((warn_unused_result,
const
));
38
39
#endif
40
is_ip_id_increasing
bool is_ip_id_increasing(const uint16_t old_id, const uint16_t new_id)
Whether the new IP-ID is increasing.
Definition:
comp/schemes/ip_id_offset.c:38
Generated by
1.8.10