Kea 2.7.5
|
Describes an event during the life cycle of a packet. More...
#include <pkt.h>
Public Member Functions | |
PktEvent (const std::string &label, boost::posix_time::ptime timestamp) | |
Constructor. | |
~PktEvent ()=default | |
Destructor. | |
Static Public Member Functions | |
static boost::posix_time::ptime & | EMPTY_TIME () |
Fetch an empty timestamp, used for logic comparisons. | |
static boost::posix_time::ptime & | MAX_TIME () |
Fetches the maximum timestamp. | |
static boost::posix_time::ptime & | MIN_TIME () |
Fetches the minimum timestamp. | |
static boost::posix_time::ptime | now () |
Fetch the current UTC system time, microsecond precision. | |
Public Attributes | |
std::string | label_ |
Label identifying this event. | |
boost::posix_time::ptime | timestamp_ |
Timestamp at which the event occurred. | |
Static Public Attributes | |
static const std::string | BUFFER_READ |
Event that marks when a packet is read from the socket buffer by application. | |
static const std::string | RESPONSE_SENT |
Event that marks when a packet is been written to the socket by application. | |
static const std::string | SOCKET_RECEIVED |
Event that marks when a packet is placed in the socket buffer by the kernel. | |
|
inline |
|
default |
Destructor.
|
inlinestatic |
Fetch an empty timestamp, used for logic comparisons.
Definition at line 124 of file pkt.h.
Referenced by isc::perfmon::Alarm::checkSample(), isc::dhcp::Pkt::getPktEventTime(), and isc::perfmon::Alarm::setState().
|
inlinestatic |
|
inlinestatic |
Fetches the minimum timestamp.
Definition at line 132 of file pkt.h.
Referenced by isc::perfmon::MonitoredDuration::getCurrentIntervalStart(), and isc::perfmon::MonitoredDurationStore::getOverdueReports().
|
inlinestatic |
Fetch the current UTC system time, microsecond precision.
Definition at line 117 of file pkt.h.
Referenced by isc::perfmon::MonitoredDuration::addSample(), isc::perfmon::Alarm::checkSample(), isc::perfmon::MonitoredDurationStore::getReportsNext(), isc::perfmon::PerfMonMgr::perfmonGetAllDurationsHandler(), and isc::perfmon::Alarm::setState().
|
static |
Event that marks when a packet is read from the socket buffer by application.
Definition at line 97 of file pkt.h.
Referenced by isc::dhcp::PktFilterBPF::receive(), and isc::dhcp::PktFilterLPF::receive().
std::string isc::dhcp::PktEvent::label_ |
|
static |
Event that marks when a packet is been written to the socket by application.
Definition at line 101 of file pkt.h.
Referenced by isc::dhcp::PktFilterBPF::send(), and isc::dhcp::PktFilterLPF::send().
|
static |
Event that marks when a packet is placed in the socket buffer by the kernel.
Definition at line 93 of file pkt.h.
Referenced by isc::dhcp::PktFilterBPF::receive(), isc::dhcp::PktFilterInet::receive(), and isc::dhcp::PktFilterLPF::receive().
boost::posix_time::ptime isc::dhcp::PktEvent::timestamp_ |