summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_vivc.go
diff options
context:
space:
mode:
authorChristopher Koch <c@chrisko.ch>2019-01-20 21:13:30 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-24 08:05:49 +0000
commita4a666c6477431358a1d6ed7b556398ed690ab5c (patch)
treed6b4c0e7a753db223d7d8b09569c4d028cff0f24 /dhcpv4/option_vivc.go
parentc90ab10024ada840e24bb028a3405961e8e4c26a (diff)
dhcpv4: getters instead of getters
From: r := GetRouter(d.Options) To: r := d.Router()
Diffstat (limited to 'dhcpv4/option_vivc.go')
-rw-r--r--dhcpv4/option_vivc.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/dhcpv4/option_vivc.go b/dhcpv4/option_vivc.go
index 509ba80..a669d27 100644
--- a/dhcpv4/option_vivc.go
+++ b/dhcpv4/option_vivc.go
@@ -25,19 +25,6 @@ func OptVIVC(identifiers ...VIVCIdentifier) Option {
}
}
-// GetVIVC returns the vendor-identifying vendor class option in o if present.
-func GetVIVC(o Options) VIVCIdentifiers {
- v := o.Get(OptionVendorIdentifyingVendorClass)
- if v == nil {
- return nil
- }
- var ids VIVCIdentifiers
- if err := ids.FromBytes(v); err != nil {
- return nil
- }
- return ids
-}
-
// VIVCIdentifiers implements encoding and decoding methods for a DHCP option
// described in RFC 3925.
type VIVCIdentifiers []VIVCIdentifier