From 140f30ea44e64176d45287ea687775eef4f419e0 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 14 Sep 2012 12:36:03 -0400 Subject: Add note about mac matching and media type. --- etc/inc/services.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index e3a2871..1834e37 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -541,6 +541,7 @@ EOPP; if (empty($mac)) continue; $dhcpdconf .= 'class "' . str_replace(':', '', $mac) . '" {' . "\n"; + // Skip the first octet of the MAC address - for media type, typically Ethernet ("01") and match the rest. $dhcpdconf .= ' match if substring (hardware, 1, ' . (substr_count($mac, ':') + 1) . ') = ' . $mac . ';' . "\n"; $dhcpdconf .= '}' . "\n"; } -- cgit v1.1