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 |
pcg |
1.3 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
29 |
pcg |
1.1 |
*/ |
30 |
|
|
#ifndef _D_IP_H |
31 |
|
|
#define _D_IP_H |
32 |
|
|
|
33 |
|
|
#include "rohc.h" |
34 |
|
|
#include "decomp.h" |
35 |
|
|
#include "d_util.h" |
36 |
|
|
|
37 |
|
|
struct s_iponly_change |
38 |
|
|
{ |
39 |
|
|
int rnd; |
40 |
|
|
int nbo; |
41 |
|
|
|
42 |
|
|
struct iphdr ip; |
43 |
|
|
}; |
44 |
|
|
|
45 |
|
|
struct s_iponly_profile_data |
46 |
|
|
{ |
47 |
|
|
struct s_iponly_change * last1; |
48 |
|
|
struct s_iponly_change * last2; |
49 |
|
|
struct s_iponly_change * active1; |
50 |
|
|
struct s_iponly_change * active2; |
51 |
|
|
|
52 |
|
|
struct sd_lsb_decode sn; |
53 |
|
|
struct sd_ip_id_decode ip_id1; |
54 |
|
|
struct sd_ip_id_decode ip_id2; |
55 |
|
|
|
56 |
|
|
// multiple ip-header if multiple_ip=1 |
57 |
|
|
int multiple_ip; |
58 |
|
|
// struct type_timestamp sn; |
59 |
|
|
// struct type_ipid ipid; |
60 |
|
|
int package_type; |
61 |
|
|
|
62 |
|
|
int counter; |
63 |
|
|
int last_packet_time; //the time of the last crc-approved packet |
64 |
|
|
int current_packet_time; //the time of the current packet without crc-test yet |
65 |
|
|
int inter_arrival_time; //a average inter-packet time of the last few packets, |
66 |
|
|
}; |
67 |
|
|
|
68 |
|
|
struct s_profile * iponly_profile_create(void); |
69 |
|
|
|
70 |
|
|
#endif |