diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2023-12-04 10:33:34 +0000 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2023-12-06 07:48:09 +0100 |
commit | 8c70d406f6d24a17219a5f543174c1f3f3ad9e35 (patch) | |
tree | 7f9acc8e465b9b354dea197f1d77698370e648ab /dhcpv4/bsdp/vendor_class_identifier_darwin.go | |
parent | b0416c0f187a65a350b32d34fc31ea30f06c12ce (diff) |
Diffstat (limited to 'dhcpv4/bsdp/vendor_class_identifier_darwin.go')
-rw-r--r-- | dhcpv4/bsdp/vendor_class_identifier_darwin.go | 18 |
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 -} |