Wireshark 4.4: Converting Display Filters to BPF Capture Filters

Published: 2024-09-01. Last Updated: 2024-09-01 14:56:40 UTC
by Didier Stevens (Version: 1)
0 comment(s)

Display filters are used to define expressions that decide which packets get displayed, and which not in Wireshark's packet list.

Berkeley Packet Filter (BPF) expressions decide which packets get captured, and which not when Wireshark is capturing traffic.

Both expression types have a different syntax.

Wireshark release 4.4 brings a new feature to convert display filter expressions to BPF expressions.

Type your display filter expression into the display filter box, and then select this menu entry: Edit / Copy / Display filter as pcap filter.

The capture filter expression is put on the clipboard:

tcp dst port 443

If Wireshark can not convert an expression, the menu option will be grayed-out:

 

Didier Stevens
Senior handler
blog.DidierStevens.com

Keywords:
0 comment(s)

Comments


Diary Archives