1 of 1 people found this helpful
we have a packet filter to parse the packet received, please have a check if you can get your answer from below info.
* This application demonstrates usage of WLAN packet filters combined with monitor mode.
* Packet filters allow an application to specify exactly which kind of
* packets it wants by setting templates that all incoming packets will
* be matched against.
* Each filter has an option that determines whether matching packets are passed
* up to the app processor or dropped, defining inclusive or exclusive filters.
* Filters can also be used without monitor mode (ie without recieving the packets) when only
* the number of matches to a given filter is needed, without the actual data.
* Note that if no filters are installed and monitor mode is on, all incoming packets wll be
* sent to the callback. But using filters to cut down the number of packets captured is
* recomended in order to cut down on system resource usage,
* Some packet parsing is done here to show usage but is not meant to be definitive nor
* Both IEEE802.11 layer 2 packets (802.11) and layer 3 packets (IP, ARP, etc) filtering
* is demonstrated here.
* Features demonstrated
* - Defining filters.
* - Adding, Enabling/Disabling, Listing & removing filters
* - Setting up monitor mode with callbacks.
* - Recieving packets from the filters.
* - Demonstrates various 802.11 and IP filters.
* - Examining stats from filters.
* - Parsing layer 2 802.11 packets.
* - Parsing layer 3 IP packets.