ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/rohc/d_udp.h
Revision: 1.1
Committed: Sun Feb 8 06:02:44 2004 UTC (20 years, 4 months ago) by pcg
Content type: text/plain
Branch: MAIN
CVS Tags: ROHC-IMPORT-2004-02-08
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 /*
2     ROHC Project 2003 at Lulea University of Technology, Sweden.
3     Authors: Andreas Vernersson <andver-8@student.luth.se>
4     Daniel Pettersson <danpet-7@student.luth.se>
5     Erik Soderstrom <soderstrom@yahoo.com>
6     Fredrik Lindstrom <frelin-9@student.luth.se>
7     Johan Stenmark <johste-8@student.luth.se>
8     Martin Juhlin <juhlin@users.sourceforge.net>
9     Mikael Larsson <larmik-9@student.luth.se>
10     Robert Maxe <robmax-1@student.luth.se>
11    
12     Copyright (C) 2003 Andreas Vernersson, Daniel Pettersson,
13     Erik Soderström, Fredrik Lindström, Johan Stenmark,
14     Martin Juhlin, Mikael Larsson, Robert Maxe.
15    
16     This program is free software; you can redistribute it and/or modify
17     it under the terms of the GNU General Public License as published by
18     the Free Software Foundation; either version 2 of the License, or
19     (at your option) any later version.
20    
21     This program is distributed in the hope that it will be useful,
22     but WITHOUT ANY WARRANTY; without even the implied warranty of
23     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24     GNU General Public License for more details.
25    
26     You should have received a copy of the GNU General Public License
27     along with this program; if not, write to the Free Software
28     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29     */
30     #ifndef _D_UDP_H
31     #define _D_UDP_H
32    
33     #include <linux/ip.h>
34     #include <linux/udp.h>
35     #include "rohc.h"
36     #include "decomp.h"
37     #include "d_util.h"
38    
39     struct s_udp_change
40     {
41     int rnd;
42     int nbo;
43    
44     struct iphdr ip;
45     struct udphdr udp;
46     };
47    
48     struct s_udp_profile_data
49     {
50     struct s_udp_change * last1;
51     struct s_udp_change * last2;
52     struct s_udp_change * active1;
53     struct s_udp_change * active2;
54    
55     struct sd_lsb_decode sn;
56     struct sd_ip_id_decode ip_id1;
57     struct sd_ip_id_decode ip_id2;
58    
59     int multiple_ip;
60     int udp_checksum_present;
61    
62     int package_type;
63    
64     int counter;
65     int last_packet_time; //the time of the last crc-approved packet
66     int current_packet_time; //the time of the current packet without crc-test yet
67     int inter_arrival_time; //a average inter-packet time of the last few packets,
68     };
69    
70     struct s_profile * udp_profile_create(void);
71    
72     #endif