From ecac21ab7f3d321dfece2fdab9a106a35cd5dcd3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 30 Dec 2003 00:03:48 +0000 Subject: 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 --- packet-tcp.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packet-tcp.h') 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 @@ -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 -- cgit v1.2.3