ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/rohc/d_udp_lite.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

# Content
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_LITE_H
31 #define _D_UDP_LITE_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
40 struct s_udp_lite_change
41 {
42 int rnd;
43 int nbo;
44
45 struct iphdr ip;
46 struct udphdr udp;
47 };
48
49 struct s_udp_lite_profile_data
50 {
51 struct s_udp_lite_change * last1;
52 struct s_udp_lite_change * last2;
53 struct s_udp_lite_change * active1;
54 struct s_udp_lite_change * active2;
55
56 struct sd_lsb_decode sn;
57 struct sd_ip_id_decode ip_id1;
58 struct sd_ip_id_decode ip_id2;
59
60 int multiple_ip;
61
62 // udp-lite checksum coverage field present or not
63 int coverage_present;
64
65 // if inferred then udp-lite == udp otherwise use
66 // the value stored i udphdr length field which is
67 // supposed to be the checksum coverage field in
68 // udp-lite.
69 // this matters only when coverage_present == 0
70 int coverage_inferred;
71
72 int ce_packet;
73 int package_type;
74
75 int counter;
76 int last_packet_time; //the time of the last crc-approved packet
77 int current_packet_time; //the time of the current packet without crc-test yet
78 int inter_arrival_time; //a average inter-packet time of the last few packets,
79 };
80
81 struct s_profile * udp_lite_profile_create(void);
82
83 #endif