ROHC compression/decompression library
c_udp_lite.h
Go to the documentation of this file.
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 
00024 #ifndef C_UDP_LITE_H
00025 #define C_UDP_LITE_H
00026 
00027 #include <netinet/udp.h>
00028 
00029 #include "rohc_comp.h"
00030 #include "c_generic.h"
00031 #include "c_udp.h"
00032 #include "udp_lite.h"
00033 
00034 
00037 #define MAX_LITE_COUNT 2
00038 
00039 
00049 struct udp_lite_tmp_variables
00050 {
00052         int udp_size;
00053 };
00054 
00055 
00064 struct sc_udp_lite_context
00065 {
00067         int cfp;
00069         int cfi;
00070 
00072         unsigned char FK;
00073 
00075         int coverage_equal_count;
00077         int coverage_inferred_count;
00079         int tmp_coverage;
00080 
00082         int sent_cce_only_count;
00084         int sent_cce_on_count;
00086         int sent_cce_off_count;
00087 
00089         struct udphdr old_udp_lite;
00090 
00093         struct udp_lite_tmp_variables tmp_variables;
00094 };
00095 
00096 
00097 #endif
00098