30#include <tins/config.h>
32#if !defined(TINS_DOT11_DOT11_PROBE_H) && defined(TINS_HAVE_DOT11)
34#define TINS_DOT11_DOT11_PROBE_H
36#include <tins/dot11/dot11_mgmt.h>
37#include <tins/macros.h>
152 return Endian::le_to_host(body_.timestamp);
161 return Endian::le_to_host(body_.interval);
171 return body_.capability;
181 return body_.capability;
189 void timestamp(uint64_t new_timestamp);
196 void interval(uint16_t new_interval);
204 uint32_t header_size()
const;
230 void write_fixed_parameters(Memory::OutputMemoryStream& stream);
233 struct dot11_probe_response_header {
236 capability_information capability;
239 dot11_probe_response_header body_;
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_probe.h:83
bool matches_flag(PDUType flag) const
Check whether this PDU matches the specified flag.
Definition dot11_probe.h:92
static const PDU::PDUType pdu_flag
This PDU's flag.
Definition dot11_probe.h:49
Dot11ProbeRequest(const address_type &dst_hw_addr=address_type(), const address_type &src_hw_addr=address_type())
Constructor for creating a 802.11 Probe Request.
Definition dot11_probe.cpp:44
Dot11ProbeRequest * clone() const
Clones this PDU.
Definition dot11_probe.h:101
bool matches_flag(PDUType flag) const
Check whether this PDU matches the specified flag.
Definition dot11_probe.h:226
Dot11ProbeResponse * clone() const
Clones this PDU.
Definition dot11_probe.h:211
uint16_t interval() const
Getter for the interval field.
Definition dot11_probe.h:160
static const PDU::PDUType pdu_flag
This PDU's flag.
Definition dot11_probe.h:116
capability_information & capabilities()
Getter for the Capabilities Information.
Definition dot11_probe.h:180
PDUType pdu_type() const
Getter for the PDU's type.
Definition dot11_probe.h:219
const capability_information & capabilities() const
Getter for the Capabilities Information.
Definition dot11_probe.h:170
uint64_t timestamp() const
Getter for the timestamp field.
Definition dot11_probe.h:151
Dot11ProbeResponse(const address_type &dst_hw_addr=address_type(), const address_type &src_hw_addr=address_type())
Constructor for creating a 802.11 Probe Response.
Definition dot11_probe.cpp:59
HWAddress< 6 > address_type
Definition dot11_base.h:59
PDUType
Enum which identifies each type of PDU.
Definition pdu.h:127
The Tins namespace.
Definition address_range.h:38