aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tcp.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-12-17 11:49:32 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-12-17 11:49:32 +0000
commit1027314b99b947f2890bdf49d90b777be2b2b34a (patch)
tree6142d7bf8eb409a06da6a24793cfe780f9f734af /packet-tcp.h
parent675a2960eec6e2cdc2e5bff9a3928b5ca527e520 (diff)
From Jason House, support for TAPping from TCP protocol
svn path=/trunk/; revision=6792
Diffstat (limited to 'packet-tcp.h')
-rw-r--r--packet-tcp.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/packet-tcp.h b/packet-tcp.h
index 45ed5573a2..d0c932c080 100644
--- a/packet-tcp.h
+++ b/packet-tcp.h
@@ -1,6 +1,6 @@
/* packet-tcp.h
*
- * $Id: packet-tcp.h,v 1.12 2002/08/28 21:00:36 jmayer Exp $
+ * $Id: packet-tcp.h,v 1.13 2002/12/17 11:49:32 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -24,6 +24,29 @@
#ifndef __PACKET_TCP_H__
#define __PACKET_TCP_H__
+/* TCP flags */
+#define TH_FIN 0x01
+#define TH_SYN 0x02
+#define TH_RST 0x04
+#define TH_PUSH 0x08
+#define TH_ACK 0x10
+#define TH_URG 0x20
+#define TH_ECN 0x40
+#define TH_CWR 0x80
+
+
+/* the tcp header structure, passed to tap listeners */
+struct tcpheader {
+ guint32 th_seq;
+ guint32 th_ack;
+ guint32 th_seglen;
+ guint16 th_win;
+ guint16 th_sport;
+ guint16 th_dport;
+ guint8 th_hlen;
+ guint8 th_flags;
+};
+
/*
* Private data passed from the TCP dissector to subdissectors.
*/