WifiEncap
Converts ethernet packets to 802.11 packets with a LLC header.
SYNOPSIS§
WifiEncap(MODE, BSSID)
Ports: 1 input, 1 output
Processing: agnostic
DESCRIPTION§
Strips the ethernet header off the front of the packet and pushes an 802.11 frame header and llc header onto the packet.
Arguments are:
- BSSID — is an ethernet address. This ususally the access point's ethernet address. If you are using Mode 0, this is usually set to 00\:00\:00\:00\:00:00 for "psuedo-ibss" mode.
- MODE —
This specifies which address field the BSSID field is located at (for
instance, the BSSID is the destination when MODE is 1, because the
packet is going to the access point).
It should be one of:
0 station -> station
1 station -> access point
2 access point -> station
3 access point -> access point
ELEMENT HANDLERS§
- mode (read/write) — Same as MODE argument
- bssid (read/write) — Same as BSSID argument
EXAMPLES§
// this configuration sends 1000 broadcast packets at 1 megabit // to device ath0 with ethertype 0x9000
inf_src :: InfiniteSource(DATA \
SEE ALSO§
Generated by click-elem2man from ../elements/wifi/wifiencap.hh:8 on 2026/11/02.