diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2017-04-08 20:33:39 +0200 |
---|---|---|
committer | Joachim Tingvold <joachim@tingvold.com> | 2017-04-08 20:33:39 +0200 |
commit | bce204e6241e1944941551aa21c74ae52396d44a (patch) | |
tree | 25fee688aa15a0bb2be8eb0953583e8ed7f6678b | |
parent | 1cadec6c2905ba65189424597dabfb718a780fc6 (diff) |
We want the full MAC...
-rwxr-xr-x | bootstrap/make-dhcpd.pl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bootstrap/make-dhcpd.pl b/bootstrap/make-dhcpd.pl index deca55e..579a64e 100755 --- a/bootstrap/make-dhcpd.pl +++ b/bootstrap/make-dhcpd.pl @@ -206,7 +206,7 @@ option option-150 code 150 = { ip-address }; option vendor-class-identifier code 60 = text; # binary-to-ascii remove leading 0 rebuild the complete MAC -set tempmac = concat ( +set hostmac = concat ( suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,1,1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,2,1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,3,1))),2), ":", @@ -215,9 +215,6 @@ set tempmac = concat ( suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,6,1))),2) ); -# extract the only first 8 chars -set hostmac = substring(tempmac, 0, 8); - # only allow FAP "clients" class "fap-vendor-class" { # Vendor-Class Option 60, length 21: "Juniper-ex2200-48t-4g" |