libtins  4.4
Public Types | Public Member Functions | List of all members
Tins::RSNHandshakeCapturer Class Reference

#include <handshake_capturer.h>

Public Types

typedef RSNHandshake handshake_type
 
typedef std::vector< handshake_typehandshakes_type
 

Public Member Functions

bool process_packet (const PDU &pdu)
 Processes a packet. More...
 
const handshakes_typehandshakes () const
 Retrieves the completed handshakes. More...
 
void clear_handshakes ()
 Clears the completed handshakes. More...
 

Detailed Description

Captures 802.1X RSN handshakes.

Member Typedef Documentation

◆ handshake_type

The type of handshakes that will be captured.

◆ handshakes_type

The type in which all of the captured handshakes will be stored.

Member Function Documentation

◆ clear_handshakes()

void Tins::RSNHandshakeCapturer::clear_handshakes ( )
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.

◆ handshakes()

const handshakes_type& Tins::RSNHandshakeCapturer::handshakes ( ) const
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.

See also
RSNHandshakeCapturer::clear_handshakes

◆ process_packet()

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.

See also
RSNHandshakeCapturer::handshakes

The documentation for this class was generated from the following files: