30 #include <tins/config.h> 32 #if !defined(TINS_HANDSHAKE_CAPTURER_H) && defined(TINS_HAVE_DOT11) 33 #define TINS_HANDSHAKE_CAPTURER_H 38 #include <tins/hw_address.h> 39 #include <tins/macros.h> 40 #include <tins/eapol.h> 53 typedef std::vector<T> container_type;
71 const container_type& cont)
72 : cl_address_(client_address), suppl_address_(supplicant_address),
87 return suppl_address_;
97 address_type cl_address_, suppl_address_;
98 container_type handshake_;
131 bool process_packet(
const PDU& pdu);
143 return completed_handshakes_;
154 completed_handshakes_.clear();
158 typedef handshake_type::container_type eapol_list;
159 typedef std::map<std::pair<address_type, address_type>, eapol_list> handshake_map;
161 bool do_insert(
const handshake_map::key_type& key,
const RSNEAPOL* eapol,
164 handshake_map handshakes_;
165 handshakes_type completed_handshakes_;
170 #endif // TINS_HANDSHAKE_CAPTURER_H Definition: handshake_capturer.h:109
const address_type & supplicant_address() const
Definition: handshake_capturer.h:86
RSNHandshake handshake_type
Definition: handshake_capturer.h:114
void clear_handshakes()
Clears the completed handshakes.
Definition: handshake_capturer.h:153
EAPOLHandshake< RSNEAPOL > RSNHandshake
Definition: handshake_capturer.h:104
Generic EAPOL handshake.
Definition: handshake_capturer.h:51
const handshakes_type & handshakes() const
Retrieves the completed handshakes.
Definition: handshake_capturer.h:142
EAPOLHandshake(const address_type &client_address, const address_type &supplicant_address, const container_type &cont)
Definition: handshake_capturer.h:69
const container_type & handshake() const
Definition: handshake_capturer.h:93
std::vector< handshake_type > handshakes_type
Definition: handshake_capturer.h:120
The Tins namespace.
Definition: address_range.h:38
EAPOLHandshake()
Default constructor.
Definition: handshake_capturer.h:59
Class that represents the RSN EAPOL PDU.
Definition: eapol.h:397
const address_type & client_address() const
Definition: handshake_capturer.h:79
Base class for protocol data units.
Definition: pdu.h:107