Kea 2.7.6
|
Token representing an IP address as a string. More...
#include <token.h>
Public Member Functions | |
TokenIpAddressToText () | |
Constructor (does nothing) | |
virtual unsigned | evaluate (Pkt &pkt, ValueStack &values) |
Token evaluation (puts value of the string on the stack after decoding) | |
Public Member Functions inherited from isc::dhcp::Token | |
virtual | ~Token () |
Virtual destructor. | |
virtual unsigned | getLabel () const |
Return the label of this token. | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::dhcp::Token | |
static bool | toBool (std::string value) |
Coverts a (string) value to a boolean. | |
Token representing an IP address as a string.
This token holds the value of an IP address as a string, for instance 10.0.0.1 is '10.0.0.1'
|
inline |
|
virtual |
Token evaluation (puts value of the string on the stack after decoding)
pkt | (ignored) |
values | (represented IP address as a string will be pushed here) |
Implements isc::dhcp::Token.
Definition at line 164 of file token.cc.
References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_IPADDRESSTOTEXT, isc::dhcp::eval_logger, isc::asiolink::IOAddress::fromBytes(), isc::dhcp::Pkt::getLabel(), isc_throw, LOG_DEBUG, and isc::asiolink::IOAddress::toText().