summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-09-14 12:36:03 -0400
committerjim-p <jimp@pfsense.org>2012-09-14 12:36:03 -0400
commit140f30ea44e64176d45287ea687775eef4f419e0 (patch)
treea142e0965b51b7ecfad52d413883cf075868350e /etc
parent80d30a83463f3ee8160bbd9b38cd2f2f510560d7 (diff)
downloadpfsense-140f30ea44e64176d45287ea687775eef4f419e0.zip
pfsense-140f30ea44e64176d45287ea687775eef4f419e0.tar.gz
Add note about mac matching and media type.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc1
1 files changed, 1 insertions, 0 deletions
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";
}
OpenPOWER on IntegriCloud