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

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%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×349
×165
×82
×34
×24

question asked: 14 Jul '15, 15:12

question was seen: 2,169 times

last updated: 14 Jul '15, 15:12

p​o​w​e​r​e​d by O​S​Q​A