How to match part of agent's vendor specific suboption
Eduardo Ferreira Juca de Castro
jucah at cpqd.com.br
Sun Oct 9 19:07:10 UTC 2011
Hi,
I need to assign addresses based on a ssid information carried on agent's
(option 82) vendor specific suboption.
Do do so I defined classes this way:
class "myClass" {
match if substring(agent,60,5) = "SSID1";
}
and used it in pool statements but nothing happens.
I also tried to log things to see waht are beeing decoded but again nothing
happens.
if option dhcp-message-type = 1 {
log(info,concat("option82-suboption9:
",binary-to-ascii(16,8,"",substring(agent,60,5))));
}
I'm using ISC DHCP 4.2.1.
Anyone can help me with this?
TIA
Regards,
Eduardo F. J. de Castro
CPqD - Telecommunications and IT R&D Center
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111009/38f3cee9/attachment.html>
More information about the dhcp-users
mailing list