From 190bdc32de952cc679c25f61d47e2dfab41c29e7 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 14 Nov 2013 17:37:40 +0000 Subject: Add packet information and selection to the Follow Stream dialog. Collect packet numbers when following streams so that we can correlate text positions with packets. Add a FollowStreamText class so that we can track mouse events. Add a hint label that shows the packet under the cursor along with packet counts and the number of "turns". Add the packet number to the C array dump. Note that dumping to YAML might be useful for Scapy users. svn path=/trunk/; revision=53314 --- epan/follow.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'epan/follow.c') diff --git a/epan/follow.c b/epan/follow.c index ed930c12b4..be4f0f576f 100644 --- a/epan/follow.c +++ b/epan/follow.c @@ -231,7 +231,7 @@ void reassemble_tcp( guint32 tcp_stream, guint32 sequence, guint32 acknowledgement, guint32 length, const char* data, guint32 data_length, int synflag, address *net_src, address *net_dst, - guint srcport, guint dstport) { + guint srcport, guint dstport, guint32 packet_num) { guint8 srcx[MAX_IPADDR_LEN], dstx[MAX_IPADDR_LEN]; int src_index, j, first = 0, len; guint32 newseq; @@ -325,8 +325,9 @@ reassemble_tcp( guint32 tcp_stream, guint32 sequence, guint32 acknowledgement, /* Initialize our stream chunk. This data gets written to disk. */ memcpy(sc.src_addr, srcx, len); - sc.src_port = srcport; - sc.dlen = data_length; + sc.src_port = srcport; + sc.dlen = data_length; + sc.packet_num = packet_num; /* now that we have filed away the srcs, lets get the sequence number stuff figured out */ -- cgit v1.2.1