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.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/dhcpv4/bsdp/vendor_class_identifier_darwin.go b/dhcpv4/bsdp/vendor_class_identifier_darwin.go
deleted file mode 100644
index 46ef656..0000000
--- a/dhcpv4/bsdp/vendor_class_identifier_darwin.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package bsdp
-
-import (
- "fmt"
-
- "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 := unix.Sysctl("hw.model")
- if err != nil {
- return "", err
- }
- return fmt.Sprintf("%s/i386/%s", AppleVendorID, hwModel), nil
-}