[kea-dev] Kea DHCP 1.3 issue
fdupont at isc.org
Wed Nov 22 09:24:05 UTC 2017
If I count well packet(12, 3) are the first 3 octets of the ciaddr
field so you should use the pkt4.ciaddr token. You have no
binary-to-ascii but you have IP address literals so you should
compare substring(<arg>, 0, 3) on each side so something like
"name": "xx.yy.zz class",
"test": "substring(pkt4.ciaddr, 0, 3) == substring(xx.yy.xx.0, 0, 3)"
BTW it is not the best idea to have spaces inside class names even a
priori only ' and \n should be forbidden. Note that currently only
the empty name is not allowed...
Francis Dupont <fdupont at isc.org>
More information about the kea-dev