File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ You can also decode only wlan802.11 frames if you dont have radiotap header befo
3434
3535First you need a pcapng file containing :
3636 * your wlan 802.11 frames preceding with radiotap frames
37-
37+ * Or your wlan 802.11 frames only
38+
3839You can use to parse this file
3940* the jnetpcap library
4041* my own lib in http://akinaru.github.io/pcapng-decoder-java/ (pcapng-decoder-java)
@@ -59,24 +60,24 @@ This exemple is launched from release folder
5960
6061<b >PROGRAM SYNTAX for parsing Wlan802.11 frames preceding with radiotap header</b >
6162
62- `` //data parsed from pcapng file ``
6363`` byte[] wlanDataPrecedingWithRadiotapHeader = packet.getPacketData(); ``
6464
65- `` //initiate decoding ``
6665`` WlanDecoder dataDecode = new WlanDecoder(packet.getPacketData()); ``
66+
6767`` dataDecode.decodeWithRadiotap(); ``
68+
6869`` wlanDecodedFrameList.add(dataDecode); ``
6970
7071You can retrieve radiotap data too if you want. Go check http://akinaru.github.io/radiotap-decoder-java/ for more precision
7172
7273<b >PROGRAM SYNTAX for parsing Wlan802.11 frames ONLY</b >
7374
74- `` //data parsed from pcapng file ``
7575`` byte[] wlanDataPrecedingWithRadiotapHeader = packet.getPacketData(); ``
7676
77- `` //initiate decoding ``
7877`` WlanDecoder dataDecode = new WlanDecoder(packet.getPacketData()); ``
78+
7979`` dataDecode.decode(); ``
80+
8081`` wlanDecodedFrameList.add(dataDecode); ``
8182
8283# Output example
You can’t perform that action at this time.
0 commit comments