summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/bsdp/vendor_class_identifier_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/bsdp/vendor_class_identifier_darwin.go')
-rw-r--r--dhcpv4/bsdp/vendor_class_identifier_darwin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/dhcpv4/bsdp/vendor_class_identifier_darwin.go b/dhcpv4/bsdp/vendor_class_identifier_darwin.go
index d1b4c2b..46ef656 100644
--- a/dhcpv4/bsdp/vendor_class_identifier_darwin.go
+++ b/dhcpv4/bsdp/vendor_class_identifier_darwin.go
@@ -2,14 +2,15 @@ package bsdp
import (
"fmt"
- "syscall"
+
+ "golang.org/x/sys/unix"
)
// MakeVendorClassIdentifier calls the sysctl syscall on macOS to get the
// platform model.
func MakeVendorClassIdentifier() (string, error) {
// Fetch hardware model for class ID.
- hwModel, err := syscall.Sysctl("hw.model")
+ hwModel, err := unix.Sysctl("hw.model")
if err != nil {
return "", err
}