summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/bsdp/vendor_class_identifier.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@get9.io>2018-03-30 11:59:09 -0700
committerinsomniac <insomniacslk@users.noreply.github.com>2018-03-30 19:59:09 +0100
commite54ed8cc0a75ad30c54286a0bc0b369c29c6941d (patch)
treea01c484688913606c081c12edbb6fc80674998b6 /dhcpv4/bsdp/vendor_class_identifier.go
parent984e562bca486c32b5d609e93b13da753a270ce8 (diff)
Remove build tags (#27)
Removes build tags from BSDP and breaks vendor class identifier into OS-specific implementations so it is easier to integrate bsdp with other libs.
Diffstat (limited to 'dhcpv4/bsdp/vendor_class_identifier.go')
-rw-r--r--dhcpv4/bsdp/vendor_class_identifier.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/dhcpv4/bsdp/vendor_class_identifier.go b/dhcpv4/bsdp/vendor_class_identifier.go
new file mode 100644
index 0000000..dfd1ca9
--- /dev/null
+++ b/dhcpv4/bsdp/vendor_class_identifier.go
@@ -0,0 +1,9 @@
+// +build !darwin
+
+package bsdp
+
+// MakeVendorClassIdentifier returns a static vendor class identifier for BSDP
+// use on non-darwin hosts.
+func MakeVendorClassIdentifier() (string, error) {
+ return DefaultMacOSVendorClassIdentifier, nil
+}