summaryrefslogtreecommitdiff
path: root/packet-tcp.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-30 00:03:48 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-30 00:03:48 +0000
commitecac21ab7f3d321dfece2fdab9a106a35cd5dcd3 (patch)
tree7142a3bdc4f626ed30fee146a1dade427d4162d4 /packet-tcp.h
parent354b911d05719120df8605faf024832e998c1c08 (diff)
downloadwireshark-ecac21ab7f3d321dfece2fdab9a106a35cd5dcd3.tar.gz
Export a "dissect_tcp_payload()" routine from the TCP dissector, for use
by pass-through proxying dissectors such as the SOCKS dissector; it does the work of processing a TCP segment, including desegmentation. Export the "next sequence number" value to subdissectors, so they can use it when calling "dissect_tcp_payload()". Use that in the SOCKS dissector. svn path=/trunk/; revision=9489
Diffstat (limited to 'packet-tcp.h')
-rw-r--r--packet-tcp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-tcp.h b/packet-tcp.h
index b05b5f99ab..63656a3ce2 100644
--- a/packet-tcp.h
+++ b/packet-tcp.h
@@ -1,6 +1,6 @@
/* packet-tcp.h
*
- * $Id: packet-tcp.h,v 1.20 2003/11/08 05:47:12 guy Exp $
+ * $Id: packet-tcp.h,v 1.21 2003/12/30 00:03:48 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -55,6 +55,7 @@ struct tcpheader {
*/
struct tcpinfo {
guint32 seq; /* Sequence number of first byte in the data */
+ guint32 nxtseq; /* Sequence number of first byte after data */
gboolean is_reassembled; /* This is reassembled data. */
gboolean urgent; /* TRUE if "urgent_pointer" is valid */
guint16 urgent_pointer; /* Urgent pointer value for the current packet. */
@@ -87,4 +88,9 @@ tcp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
extern gboolean decode_tcp_ports(tvbuff_t *, int, packet_info *,
proto_tree *, int, int);
+extern void dissect_tcp_payload(tvbuff_t *tvb, packet_info *pinfo, int offset,
+ guint32 seq, guint32 nxtseq, guint32 sport,
+ guint32 dport, proto_tree *tree,
+ proto_tree *tcp_tree);
+
#endif