Kea 2.7.5
|
Token representing an IP address as a constant string. More...
#include <token.h>
Public Member Functions | |
TokenIpAddress (const std::string &addr) | |
Value is set during token construction. | |
virtual unsigned | evaluate (Pkt &pkt, ValueStack &values) |
Token evaluation (puts value of the constant 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. | |
Protected Attributes | |
std::string | value_ |
< Constant value (empty string if the IP address cannot be converted) | |
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 constant string.
This token holds the value of an IP address as a constant string, for instance 10.0.0.1 is 0x10000001
TokenIpAddress::TokenIpAddress | ( | const std::string & | addr | ) |
|
virtual |
Token evaluation (puts value of the constant string on the stack after decoding)
pkt | (ignored) |
values | (represented IP address will be pushed here) |
Implements isc::dhcp::Token.
Definition at line 151 of file token.cc.
References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_IPADDRESS, isc::dhcp::eval_logger, LOG_DEBUG, and value_.
|
protected |
< Constant value (empty string if the IP address cannot be converted)
Definition at line 259 of file token.h.
Referenced by TokenIpAddress(), and evaluate().