diff options
Diffstat (limited to 'examples/generate_rtscts/README.md')
-rw-r--r-- | examples/generate_rtscts/README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/generate_rtscts/README.md b/examples/generate_rtscts/README.md new file mode 100644 index 0000000..a7db7c2 --- /dev/null +++ b/examples/generate_rtscts/README.md | |||
@@ -0,0 +1,23 @@ | |||
1 | # Generating 802.11 RTS and CTS Frames | ||
2 | This example shows the reader how to generate an RTS and a CTS Frame, with a random transmitter and a 32ms duration. | ||
3 | |||
4 | # Building and Using | ||
5 | ``` | ||
6 | >> cd examples/generate_rtscts/ | ||
7 | >> make | ||
8 | clang -Wall -Werror -O3 -o generate_rtscts -c -o generate_rtscts.o generate_rtscts.c | ||
9 | clang -Wall -Werror -O3 -o generate_rtscts generate_rtscts.c -lpcap -lwifi | ||
10 | >> ./generate_rtscts --file rtscts.pcap | ||
11 | [+] Setup Complete | ||
12 | [*] Creating RTS Frame | ||
13 | [*] Writing RTS Frame to pcap | ||
14 | [*] Creating CTS Frame | ||
15 | [*] Writing CTS Frame to pcap | ||
16 | >> tshark -r rtscts.pcap | ||
17 | 1 0.000000 J125Nati_aa:bb:cc (00:20:91:aa:bb:cc) (TA) → Broadcast (ff:ff:ff:ff:ff:ff) (RA) 802.11 16 Request-to-send, Flags=........ | ||
18 | 2 0.000008 → Broadcast (ff:ff:ff:ff:ff:ff) (RA) 802.11 10 Clear-to-send, Flags=........ | ||
19 | >> | ||
20 | ``` | ||
21 | |||
22 | # Output | ||
23 |  | ||