30 #include <tins/config.h> 32 #if !defined(TINS_DOT11_DOT11_AUTH_H) && defined(TINS_HAVE_DOT11) 33 #define TINS_DOT11_DOT11_AUTH_H 35 #include <tins/dot11/dot11_mgmt.h> 36 #include <tins/macros.h> 83 return Endian::le_to_host(body_.auth_algorithm); }
91 return Endian::le_to_host(body_.auth_seq_number);
100 return Endian::le_to_host(body_.status_code);
109 void auth_algorithm(uint16_t new_auth_algorithm);
117 void auth_seq_number(uint16_t new_auth_seq_number);
124 void status_code(uint16_t new_status_code);
132 uint32_t header_size()
const;
160 struct dot11_auth_body {
161 uint16_t auth_algorithm;
162 uint16_t auth_seq_number;
163 uint16_t status_code;
166 void write_fixed_parameters(Memory::OutputMemoryStream& stream);
168 dot11_auth_body body_;
216 return Endian::le_to_host(body_.reason_code);
224 void reason_code(uint16_t new_reason_code);
232 uint32_t header_size()
const;
260 struct dot11_deauth_body {
261 uint16_t reason_code;
264 void write_fixed_parameters(Memory::OutputMemoryStream& stream);
266 dot11_deauth_body body_;
271 #endif // TINS_DOT11_DOT11_AUTH_H uint16_t auth_seq_number() const
Getter for the Authetication Sequence Number field.
Definition: dot11_auth.h:90
uint16_t auth_algorithm() const
Getter for the Authetication Algorithm Number field.
Definition: dot11_auth.h:82
IEEE 802.11 Deauthentication frame.
Definition: dot11_auth.h:175
PDUType
Enum which identifies each type of PDU.
Definition: pdu.h:127
uint16_t reason_code() const
Getter for the reason code field.
Definition: dot11_auth.h:215
bool matches_flag(PDUType flag) const
Check whether this PDU matches the specified flag.
Definition: dot11_mgmt.h:1226
PDUType pdu_type() const
Getter for the PDU's type.
Definition: dot11_auth.h:138
Dot11Deauthentication * clone() const
Clones this PDU.
Definition: dot11_auth.h:256
Base class for all management frames in the IEEE 802.11 protocol.
Definition: dot11_mgmt.h:45
PDUType pdu_type() const
Getter for the PDU's type.
Definition: dot11_auth.h:238
IEEE 802.11 Authentication Request frame.
Definition: dot11_auth.h:42
The Tins namespace.
Definition: address_range.h:38
uint16_t status_code() const
Getter for the status code field.
Definition: dot11_auth.h:99
bool matches_flag(PDUType flag) const
Check whether this PDU matches the specified flag.
Definition: dot11_auth.h:147
Dot11Authentication * clone() const
Clones this PDU.
Definition: dot11_auth.h:156
bool matches_flag(PDUType flag) const
Check whether this PDU matches the specified flag.
Definition: dot11_auth.h:247