ROHC compression/decompression library
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 2 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * This program is distributed in the hope that it will be useful, 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 * GNU General Public License for more details. 00011 * 00012 * You should have received a copy of the GNU General Public License 00013 * along with this program; if not, write to the Free Software 00014 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00015 */ 00016 00017 /** 00018 * @file c_udp.h 00019 * @brief ROHC compression context for the UDP profile. 00020 * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com> 00021 * @author The hackers from ROHC for Linux 00022 */ 00023 00024 #ifndef C_UDP_H 00025 #define C_UDP_H 00026 00027 #include "rohc_comp_internals.h" 00028 00029 #include <stdint.h> 00030 #include <stdbool.h> 00031 00032 00033 /* 00034 * Function prototypes. 00035 */ 00036 00037 bool c_udp_check_profile(const struct rohc_comp *const comp, 00038 const struct ip_packet *const outer_ip, 00039 const struct ip_packet *const inner_ip, 00040 const uint8_t protocol, 00041 rohc_ctxt_key_t *const ctxt_key); 00042 00043 bool c_udp_check_context(const struct c_context *context, 00044 const struct ip_packet *ip); 00045 00046 00047 int udp_code_uo_remainder(const struct c_context *context, 00048 const unsigned char *next_header, 00049 unsigned char *const dest, 00050 int counter); 00051 00052 int udp_code_static_udp_part(const struct c_context *context, 00053 const unsigned char *next_header, 00054 unsigned char *const dest, 00055 int counter); 00056 00057 #endif 00058