1999-03-23 03:14:46 +00:00
|
|
|
/* packet-ip.h
|
|
|
|
* Definitions for IP packet disassembly structures and routines
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-03-23 03:14:46 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-03-23 03:14:46 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-03-23 03:14:46 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-03-23 03:14:46 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-03-23 03:14:46 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1999-03-23 03:14:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __PACKET_IP_H__
|
|
|
|
#define __PACKET_IP_H__
|
|
|
|
|
2009-05-20 15:50:40 +00:00
|
|
|
typedef struct _ws_ip
|
2009-07-09 11:32:50 +00:00
|
|
|
{
|
2003-01-22 01:16:33 +00:00
|
|
|
guint8 ip_v_hl; /* combines ip_v and ip_hl */
|
|
|
|
guint8 ip_tos;
|
|
|
|
guint16 ip_len;
|
|
|
|
guint16 ip_id;
|
|
|
|
guint16 ip_off;
|
|
|
|
guint8 ip_ttl;
|
|
|
|
guint8 ip_p;
|
|
|
|
guint16 ip_sum;
|
2003-08-23 09:09:35 +00:00
|
|
|
address ip_src;
|
|
|
|
address ip_dst;
|
2009-05-20 15:50:40 +00:00
|
|
|
} ws_ip;
|
2003-01-22 01:16:33 +00:00
|
|
|
|
2002-08-02 23:36:07 +00:00
|
|
|
void capture_ip(const guchar *, int, int, packet_counts *);
|
2009-07-09 11:32:50 +00:00
|
|
|
guint16 ip_checksum(const guint8 *ptr, int len);
|
2000-02-15 21:06:58 +00:00
|
|
|
|
2012-06-11 19:07:53 +00:00
|
|
|
/* Export the DSCP extended value-string table for other protocols */
|
2012-06-11 15:47:50 +00:00
|
|
|
WS_VAR_IMPORT value_string_ext dscp_vals_ext;
|
2001-12-29 00:43:55 +00:00
|
|
|
|
1999-03-23 03:14:46 +00:00
|
|
|
#endif
|