//access_point.click
 
// This configuration contains a configuration for running 
// an 802.11b access point on rt73 injection-capable drives, such as
// what would be used with aircrack-ng.
 
// It creates an interface using FromHost called "ap"
// and uses open authentication to allow stations to associate to it.
// This configuration assumes that you have a network interface named
// rausb0 and that it is located on channel 11.
 
// Run it at user level with
// 'click wifi-accesspoint-rt73.click'
 
// This router has not been tested as a kernel module.
// Based on the wifi-atheros based examples in the click source distribution.
 
AddressInfo(ap_bssid 10.66.67.1/24 00:0e:3b:09:15:f2);
 
winfo :: WirelessInfo(SSID "g88", BSSID 00:0e:3b:09:15:f2, CHANNEL 11);
 
rates :: AvailableRates(DEFAULT 2 4 11 22);
 
//control :: ControlSocket("TCP", 6777);
//chatter :: ChatterSocket("TCP", 6778);
 
FromHost(ap, ETHER ap_bssid)
  -> wifi_encap :: WifiEncap(0x02, BSSID 00:0e:3b:09:15:f2)
  -> set_rate :: SetTXRate(22)
  -> q :: Queue(128)
  -> to_dev :: ToDevice(rausb0);
 
from_dev :: FromDevice(rausb0)
-> prism2_decap :: Prism2Decap()
-> phyerr_filter :: FilterPhyErr()
-> tx_filter :: FilterTX()
-> dupe :: WifiDupeFilter() 
-> wifi_cl :: Classifier(0/08%0c 1/01%03, //data
                         0/00%0c); //mgt
 
wifi_cl [0] 
-> decap :: WifiDecap()
-> HostEtherFilter(ap_bssid, DROP_OTHER false, DROP_OWN true) 
-> ToHost(ap)
 
wifi_cl [1] -> mgt_cl :: Classifier(0/00%f0, //assoc req
                                    0/10%f0, //assoc resp
                                    0/40%f0, //probe req
                                    0/50%f0, //probe resp
                                    0/80%f0, //beacon
                                    0/a0%f0, //disassoc
                                    0/b0%f0, //disassoc
                                    );
 
 
 
mgt_cl [0] -> PrintWifi()
-> ar :: AssociationResponder(WIRELESS_INFO winfo,
                              RT rates)
-> q;
 
mgt_cl [1] -> PrintWifi() -> Discard;
 
mgt_cl [2]
-> beacon_source :: BeaconSource(WIRELESS_INFO winfo,
                                 RT rates)
-> q;
 
mgt_cl [3] -> PrintWifi() -> Discard;
mgt_cl [4] -> bs :: BeaconScanner(RT rates) -> Discard; 
mgt_cl [5] -> PrintWifi() -> Discard;
mgt_cl [6] -> PrintWifi() -> auth :: OpenAuthResponder(WIRELESS_INFO winfo) -> q;
 
examples/wifi-accesspoint-rt73.click.txt · Last modified: 2008/01/17 12:13 by kain
 
Recent changes RSS feed Driven by DokuWiki