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)
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();
157 typedef handshake_type::address_type address_type;
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_;
Generic EAPOL handshake.
Definition handshake_capturer.h:51
EAPOLHandshake(const address_type &client_address, const address_type &supplicant_address, const container_type &cont)
Definition handshake_capturer.h:69
const address_type & client_address() const
Definition handshake_capturer.h:79
EAPOLHandshake()
Default constructor.
Definition handshake_capturer.h:59
const container_type & handshake() const
Definition handshake_capturer.h:93
const address_type & supplicant_address() const
Definition handshake_capturer.h:86
Represents a hardware address.
Definition resolve_utils.h:43
Base class for protocol data units.
Definition pdu.h:107
Class that represents the RSN EAPOL PDU.
Definition eapol.h:397
Definition handshake_capturer.h:109
void clear_handshakes()
Clears the completed handshakes.
Definition handshake_capturer.h:153
const handshakes_type & handshakes() const
Retrieves the completed handshakes.
Definition handshake_capturer.h:142
std::vector< handshake_type > handshakes_type
Definition handshake_capturer.h:120
RSNHandshake handshake_type
Definition handshake_capturer.h:114
The Tins namespace.
Definition address_range.h:38
EAPOLHandshake< RSNEAPOL > RSNHandshake
Definition handshake_capturer.h:104