/* ROHC Project 2003 at Lulea University of Technology, Sweden. Authors: Andreas Vernersson Daniel Pettersson Erik Soderstrom Fredrik Lindstrom Johan Stenmark Martin Juhlin Mikael Larsson Robert Maxe Copyright (C) 2003 Andreas Vernersson, Daniel Pettersson, Erik Soderström, Fredrik Lindström, Johan Stenmark, Martin Juhlin, Mikael Larsson, Robert Maxe. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _D_UDP_H #define _D_UDP_H #include "rohc.h" #include "decomp.h" #include "d_util.h" struct s_udp_change { int rnd; int nbo; struct iphdr ip; struct udphdr udp; }; struct s_udp_profile_data { struct s_udp_change * last1; struct s_udp_change * last2; struct s_udp_change * active1; struct s_udp_change * active2; struct sd_lsb_decode sn; struct sd_ip_id_decode ip_id1; struct sd_ip_id_decode ip_id2; int multiple_ip; int udp_checksum_present; int package_type; int counter; int last_packet_time; //the time of the last crc-approved packet int current_packet_time; //the time of the current packet without crc-test yet int inter_arrival_time; //a average inter-packet time of the last few packets, }; struct s_profile * udp_profile_create(void); #endif