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

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%


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

permanent link

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 ♦♦
Your answer
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:

×1,620
×832
×139
×122
×41

question asked: 16 Feb '14, 02:09

question was seen: 4,485 times

last updated: 16 Feb '14, 15:59

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