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

Is it possible in wireshark and t-shark to capture only data frame ( in monitor mode) for WIRELESS network?

0

Want to capture only data frame on wireless network ( avoiding management and control frame )

asked 16 Feb '14, 02:09

WIDS's gravatar image

WIDS
257713
accept rate: 0%


One Answer:

0

Please try this

tcpdump -ni mon0 'wlan type data'
dumpcap -ni mon0 -f 'wlan type data'

Hint: If your (Unix/Linux/*BSD) system does not support the 'wlan' capture filter, you will need a newer release of libpcap on that system.

See also here (wlan type and subtype):

http://www.tcpdump.org/manpages/pcap-filter.7.txt
http://sparebits.wikispaces.com/tcpdump+wireless+filters

Regards
Kurt

answered 16 Feb '14, 02:59

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 16 Feb '14, 03:00

The same capture filter (wlan type data) can also be used by TShark and Wireshark as a capture filter. (type data by itself would work the same.)

(16 Feb '14, 15:59) Guy Harris ♦♦