Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wireshark: Filter by Multicast in GUI

Using the Wireshark "Filter" field in the Wireshark GUI, I would like to filter capture results so that only multicast packets are shown.

I've seen this post but that doesn't work for the GUI filter field. This Wireshark page shows how to filter out multicast, but not how to filter everything but multicast.

Does anyone know of a simple statement that will do this?

Thank you in advance!

like image 289
user1205577 Avatar asked Jul 09 '12 17:07

user1205577


People also ask

How do I search for multicast in Wireshark?

Observe the traffic captured in the top Wireshark packet list pane. To view only IPv4 multicast traffic, type ip. addr >= 224.0. 0.0 (lower case) in the Filter box and press Enter.

What is the multicast address used in this communication Wireshark?

Multicast allows a single network packet to be delivered to a group of receivers. Any Ethernet, or other 802. x, address with a high-order bit set to 1 (that is, if its first octet is odd) is multicast, except for the Broadcast address (which is all ones).

How do I filter a display in Wireshark?

To only display packets containing a particular protocol, type the protocol name in the display filter toolbar of the Wireshark window and press enter to apply the filter. Figure 6.8, “Filtering on the TCP protocol” shows an example of what happens when you type tcp in the display filter toolbar.


3 Answers

Just use this (eth.dst[0] & 1) . Multicast traffic is recognized by the least significant bit of the most significant byte of the MAC address. If 1, multicast, if 0, not.

like image 60
Rob Wagner Avatar answered Oct 12 '22 18:10

Rob Wagner


(eth.dst[0]&1) 

will filter both multicast and broadcast. So, from this exclude broadcast. It will be like

(eth.dst[0]&1) && !eth.dst==ff:ff:ff:ff:ff:ff 
like image 22
mojjj Avatar answered Oct 12 '22 19:10

mojjj


With Wireshark (2.2.6 version for Linux) is possible to choose the filter "eth.ig == 1"

It refer to "IG bit" that is present in the Ethernet Frame.

The IG bit distinguishes whether the MAC address is an individual or group (hence IG) address. In other words, an IG bit of 0 indicates that this is a unicast MAC address, an IG bit of 1 indicates a multicast or broadcast address.

like image 4
Alessandro T Avatar answered Oct 12 '22 20:10

Alessandro T