Token that represents fields of DHCPv6 packet.
For example in the expression pkt6.msgtype == 1 this token represents the message type of the DHCPv6 packet. The integer values are placed on the value stack as 4 byte strings.
Currently supported fields are:
Definition at line 613 of file token.h.
Gets a value of the specified packet.
The evaluation uses fields that are available in the packet. It does not require any values to be present on the stack.
- Exceptions
-
- Parameters
-
pkt | - packet from which to extract the fields |
values | - stack of values, 1 result will be pushed |
Implements isc::dhcp::Token.
Definition at line 558 of file token.cc.
References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_PKT6, isc::dhcp::eval_logger, isc::dhcp::Pkt::getTransid(), isc::dhcp::Pkt6::getType(), isc_throw, LOG_DEBUG, MSGTYPE, isc::util::encode::toHex(), and TRANSID.