matching class to pool
David W. Hankins
dhankins at isc.org
Fri Jul 2 23:53:56 UTC 2010
On Fri, Jul 02, 2010 at 05:05:54PM -0400, Adam Moffett wrote:
> match if option agent.circuit-id="a:0:3e:d4:60:73";
This is a common typo.
"text here" is parsed as an NVT-ASCII, printable string.
a:0:3e:d4:60:73 is parsed as a binary data string.
"a:0:3e:d4:60:73" is an NVT-ASCII, printable version of a binary
data string.
If your relay agent is sending 'a:0:3e:d4:60:73', a binary data
string of those values, it won't match because you have asked
dhcpd to compare it with '"a:0:3e:d4:60:73"', a much longer ASCII
string.
A good simple debug tool is the log() function. Add a log()
inside your class to confirm the class has matched. Add a log()
outside your class to help inform you what you are actually seeing
in the packet.
--
David W. Hankins "If you don't do it right the first time,
Software Engineer you'll just have to do it again."
Internet Systems Consortium, Inc. -- Jack T. Hankins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100702/0f27a0f9/attachment.bin>
More information about the dhcp-users
mailing list