diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-12-17 11:49:32 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-12-17 11:49:32 +0000 |
commit | 6a6bd41ea4a9bf86b134927eda23ba42a358e57f (patch) | |
tree | 6142d7bf8eb409a06da6a24793cfe780f9f734af /packet-tcp.h | |
parent | 32b07fa283adb1b607c62f54615ba660819bc661 (diff) |
From Jason House, support for TAPping from TCP protocol
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6792 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tcp.h')
-rw-r--r-- | packet-tcp.h | 25 |
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. */ |