Wireshark mailing list archives
FilterPackets on TCP Stream always filters conversation with ID=0
From: "tech.account () libero it" <tech.account () libero it>
Date: Wed, 15 Jul 2015 13:19:10 +0200 (CEST)
I have to filter single TCP streams
out of the open capture file. Therefore I am programmatically applying
display-filter "tcp.stream eq TCP_STREAM_ID".
The problem I have is that no matter the value of TCP_STREAM_ID, the stream whose id is 0 gets selected.
Please find a snapshot of my code below.
gchar *data_out_filename;
QString follow_filter;
int tmp_fd;
follow_filter=QString("tcp.stream eq 5"); // TCP_STREAM_ID==5
reset_tcp_reassembly();
tmp_fd = create_tempfile(&data_out_filename, "follow");
data_out_file = fdopen(tmp_fd, "w+b");
emit updateFilter(follow_filter, TRUE);
What am I doing wrong? Am I missing anything?
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- FilterPackets on TCP Stream always filters conversation with ID=0 tech.account () libero it (Jul 15)
