libtins
4.0
|
#include <handshake_capturer.h>
Public Types | |
typedef RSNHandshake | handshake_type |
typedef std::vector< handshake_type > | handshakes_type |
Public Member Functions | |
bool | process_packet (const PDU &pdu) |
Processes a packet. More... | |
const handshakes_type & | handshakes () const |
Retrieves the completed handshakes. More... | |
void | clear_handshakes () |
Clears the completed handshakes. More... | |
Captures 802.1X RSN handshakes.
The type of handshakes that will be captured.
typedef std::vector<handshake_type> Tins::RSNHandshakeCapturer::handshakes_type |
The type in which all of the captured handshakes will be stored.
|
inline |
Clears the completed handshakes.
Since completed handshakes are stored in a std::vector, it is advisable to remove all of them once they have been processed.
|
inline |
Retrieves the completed handshakes.
This will return the handshakes that have been completed so far. A handshake is completed when the 4-way handshake is captured.
bool Tins::RSNHandshakeCapturer::process_packet | ( | const PDU & | pdu | ) |
Processes a packet.
This will fetch the RSNEAPOL layer, if any, and store it in an intermediate storage. When a handshake is completed, it will be stored separately.