New behaviour of Conversation Filter TCP
asked Oct 22 '26
Hello, in the past the Conversation filter TCP created a filter like "ip.sr==xxx and ip.dst==yyy and tcp.port==aaa and tcp.port==bbb" Now it just creates "tcp.stream eq xxx".
Can I change this behavoour back? Because this is just minor different to follow tcp stream. The other filter showed more...

Also, "follow TCP stream" does not apply a tcp.stream filter anymore in 5.0
But I do understand the wish for a 5-tuple filter, because if you want to use the filter in another capture, the stream number is useless. Being able to do so from a packet rightclick instead of detouring through conversations seems like a valid functionality wish. Maybe just copying the Community-ID instead is a proper solution. As that is 5-tuple based anyways.
@Chukc. Thanks for the very good workarounds. In the conversation dialog it is nice, you can either filter on 4-Tupel or on stream-ID (5-Tupel). Maybe it would be nice as well for the context menu.
In the past it was good for me to have both 4 Tupel filter via context menu and stream filter via follwo tcp stream. Both have Pros and Cons. But the 4 Tupel filter is of cours a little bit more unprecise and sometimes you can spot more artefacts or reuse it for different captures. Maybe it worth to think about to distinguish in the context menu between 4 Tupel filter or 5 Tupel filter.
@User 36540:Should we keep it as it is or should I write an enhancement request.
5-tuple in my book is ip-src,ip-dst,proto,src-port-dst-port, in that way a tcp.stream filter is not a 5-tuple, you might want to see it as some form of 6-tuple as it takes the STATE and sequence number into the mix to distinguish multiple sessions that have the same 5-tuple.
(and yes, in wireshark filters, the protocol is implied in the port filter, so then you might consider it a 4-tuple)
Anyways... I would not mind an entry in the right-click menu to generate a stream or a ip/port filter.
@User 36540 Now I got yout your point. But if I filter for "ip.src; ip.dst; tcp.srcport; tcp.dstport) then it is just a 4 Tupel filter even in Wireshark or? Meaning if I filter for port 22 I always got packets for port 22 equal if it is SSH or not? Or have I missed here something?
The protocol in the 5-tuple is not referring to an application protocol, but to a transport protocol ie TCP or UDP, as port numbers in itself do not make that distinction. An example of a 5-tuple is
192.168.0.10,10.0.0.100,TCP,1025,80, it uniquely identifies a session. Well, until port reuse of course, but within a certain timeframe it uniquely identifies a session.In a display filter the protocol is implicit in the port filter, as it is either udp.port==X or tcp.port==X. So yes, a Wireshark display filter to filter on a 5-tuple is actually using 4 filter elements instead of 5, as the
ip.proto==6(for TCP) can be omitted.See also https://www.router-switch.com/faq/wha...
In the end, we mean the same thing, I'm just being rigid about the term ;-)
Indeed, thanks for the explanation.