summaryrefslogtreecommitdiff
path: root/epan/follow.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-11-14 17:37:40 +0000
committerGerald Combs <gerald@wireshark.org>2013-11-14 17:37:40 +0000
commit190bdc32de952cc679c25f61d47e2dfab41c29e7 (patch)
treede80eb71b731298780f01eeea92448fe541684a8 /epan/follow.c
parent2809240ead3af25b531ae3048b6e437dbf1ab004 (diff)
downloadwireshark-190bdc32de952cc679c25f61d47e2dfab41c29e7.tar.gz
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
Diffstat (limited to 'epan/follow.c')
-rw-r--r--epan/follow.c7
1 files changed, 4 insertions, 3 deletions
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 */