From e54ed8cc0a75ad30c54286a0bc0b369c29c6941d Mon Sep 17 00:00:00 2001 From: Sean Karlage Date: Fri, 30 Mar 2018 11:59:09 -0700 Subject: 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. --- dhcpv4/bsdp/vendor_class_identifier.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dhcpv4/bsdp/vendor_class_identifier.go (limited to 'dhcpv4/bsdp/vendor_class_identifier.go') 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 +} -- cgit v1.2.3