This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

FilterPackets on TCP Stream always filters the first appearing on the Convesations dialog

0

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, I always get the first stream shown in the Conversations dialog of the Statistics menu.

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"); //I am filtering tcp stream conversations.

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?

asked 14 Jul ‘15, 15:12

CrazyL's gravatar image

CrazyL
6224
accept rate: 0%