00001 /* 00002 * Copyright 2012,2013 Didier Barvaux 00003 * Copyright 2007,2009,2010 Viveris Technologies 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 /** 00021 * @file src/comp/schemes/ip_id_offset.h 00022 * @brief Offset IP-ID encoding 00023 * @author Didier Barvaux <didier@barvaux.org> 00024 */ 00025 00026 #ifndef ROHC_COMP_IP_ID_OFFSET_H 00027 #define ROHC_COMP_IP_ID_OFFSET_H 00028 00029 #include <stdint.h> 00030 #ifdef __KERNEL__ 00031 # include <linux/types.h> 00032 #else 00033 # include <stdbool.h> 00034 #endif 00035 00036 bool is_ip_id_increasing(const uint16_t old_id, const uint16_t new_id) 00037 __attribute__((warn_unused_result, const)); 00038 00039 #endif 00040
1.6.1