-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathopenauthrequester.hh
65 lines (43 loc) · 1.29 KB
/
openauthrequester.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef CLICK_OPENAUTHREQUESTER_HH
#define CLICK_OPENAUTHREQUESTER_HH
#include <click/element.hh>
#include <clicknet/ether.h>
CLICK_DECLS
/*
=c
OpenAuthRequeser
=s Wifi, Wireless Station
Sends 802.11 open authentication requests when poked.
=d
=h bssid read/write
The bssid to associate to
=h eth read/write
The station's ethernet address
=h ssid read/write
The ssid to associate to
=h listen_interval read/write
The listen interval for the station, in milliseconds
=h associated read only
If a association response was received and its status equals 0, this will
be true.
=h send_auth_req
Sends an authentication request based on values of the handlers.
=a BeaconScanner */
class OpenAuthRequester : public Element { public:
OpenAuthRequester() CLICK_COLD;
~OpenAuthRequester() CLICK_COLD;
const char *class_name() const override { return "OpenAuthRequester"; }
const char *port_count() const override { return PORTS_1_1; }
const char *processing() const override { return PUSH; }
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
bool can_live_reconfigure() const { return true; }
void add_handlers() CLICK_COLD;
void send_auth_request();
void push(int, Packet *);
bool _debug;
EtherAddress _eth;
class WirelessInfo *_winfo;
private:
};
CLICK_ENDDECLS
#endif