dhcpd code changes
David W. Hankins
dhankins at isc.org
Thu Nov 12 23:38:38 UTC 2009
On Wed, Nov 11, 2009 at 11:41:32AM +0530, Ashmath Khan wrote:
> Say I want to see if a client has mac address between 00:00:00:00:00:00 and
> FF:FF:FF:11:11:11 etc.
That's an even easier range. You're wild-carding the first three
octets, so if I understand your range correctly:
class "0-11's" {
# Ethernet hardware addresses where the last three octets are
# between 0x00 and 0x11.
match if (extract-int(substring(hardware, 0, 1), 8) == 0x01 &&
(extract-int(substring(hardware, 4, 1), 8) <= 0x11 ||
extract-int(substring(hardware, 5, 1), 8) <= 0x11 ||
extract-int(substring(hardware, 6, 1), 8) <= 0x11));
# specific configuration here
}
--
David W. Hankins BIND 10 needs more DHCP voices.
Software Engineer There just aren't enough in our heads.
Internet Systems Consortium, Inc. http://bind10.isc.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-workers/attachments/20091112/c380d899/attachment.bin>
More information about the dhcp-workers
mailing list