diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-01-22 01:16:33 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-01-22 01:16:33 +0000 |
commit | beab3b6c9007c53369582ee783043cdd37270de0 (patch) | |
tree | 8266909c4a98619c467655464d2cee403b654469 /packet-ip.h | |
parent | b8fd3cc391ebf9475fce3d8e75a09e7f8201fe38 (diff) |
Patch for packet-ip to make it TAPable
svn path=/trunk/; revision=6969
Diffstat (limited to 'packet-ip.h')
-rw-r--r-- | packet-ip.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/packet-ip.h b/packet-ip.h index 48acf97f48..39aacbbb9e 100644 --- a/packet-ip.h +++ b/packet-ip.h @@ -1,7 +1,7 @@ /* packet-ip.h * Definitions for IP packet disassembly structures and routines * - * $Id: packet-ip.h,v 1.25 2002/08/28 21:00:17 jmayer Exp $ + * $Id: packet-ip.h,v 1.26 2003/01/22 01:16:33 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -26,6 +26,20 @@ #ifndef __PACKET_IP_H__ #define __PACKET_IP_H__ +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; + guint32 ip_src; + guint32 ip_dst; +} e_ip; + void capture_ip(const guchar *, int, int, packet_counts *); typedef enum { |