1999-03-23 03:14:46 +00:00
|
|
|
/* packet-ip.h
|
|
|
|
* Definitions for IP packet disassembly structures and routines
|
|
|
|
*
|
2003-08-23 09:09:35 +00:00
|
|
|
* $Id: packet-ip.h,v 1.29 2003/08/23 09:09:33 sahlberg Exp $
|
1999-03-23 03:14:46 +00:00
|
|
|
*
|
|
|
|
* Ethereal - Network traffic analyzer
|
2001-04-23 17:51:37 +00:00
|
|
|
* By Gerald Combs <gerald@ethereal.com>
|
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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __PACKET_IP_H__
|
|
|
|
#define __PACKET_IP_H__
|
|
|
|
|
2003-01-22 01:16:33 +00:00
|
|
|
typedef struct _e_ip
|
|
|
|
{
|
|
|
|
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;
|
2003-01-22 01:16:33 +00:00
|
|
|
} e_ip;
|
|
|
|
|
2002-08-02 23:36:07 +00:00
|
|
|
void capture_ip(const guchar *, int, int, packet_counts *);
|
2000-02-15 21:06:58 +00:00
|
|
|
|
2001-12-29 00:43:55 +00:00
|
|
|
/* Export the DSCP value-string table for other protocols */
|
2001-12-29 22:01:11 +00:00
|
|
|
extern const value_string dscp_vals[];
|
2001-12-29 00:43:55 +00:00
|
|
|
|
1999-03-23 03:14:46 +00:00
|
|
|
#endif
|