Skip to content

Commit bf07a0b

Browse files
Update README.md
1 parent 535484c commit bf07a0b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ You can also decode only wlan802.11 frames if you dont have radiotap header befo
3434

3535
First 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+
3839
You 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

7071
You 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

0 commit comments

Comments
 (0)