-
Notifications
You must be signed in to change notification settings - Fork 321
WifiEncap
Eddie Kohler edited this page Oct 18, 2017
·
4 revisions
WifiEncap — Click element; Converts ethernet packets to 802.11 packets with a LLC header.
WifiEncap(MODE, BSSID)
Ports: 1 input, 1 output
Processing: agnostic
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
- mode (read/write) — Same as MODE argument
- bssid (read/write) — Same as BSSID argument
// this configuration sends 1000 broadcast packets at 1 megabit // to device ath0 with ethertype 0x9000
inf_src :: InfiniteSource(DATA <ffff>, LIMIT 1000, ACTIVE false) -> EtherEncap(0x9000, ath0, ff:ff:ff:ff:ff:ff) -> wifi_encap :: WifiEncap(0x00, 0:0:0:0:0:0) -> set_rate :: SetTXRate(RATE 2) -> ExtraEncap() -> to_dev :: ToDevice (ath0);
Generated by click-elem2man from ../../elements/wifi/wifiencap.hh:8
on 2017/10/17.