diff options
author | Christopher Koch <c@chrisko.ch> | 2019-01-20 21:13:30 +0000 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-01-24 08:05:49 +0000 |
commit | a4a666c6477431358a1d6ed7b556398ed690ab5c (patch) | |
tree | d6b4c0e7a753db223d7d8b09569c4d028cff0f24 /dhcpv4/bsdp/boot_image.go | |
parent | c90ab10024ada840e24bb028a3405961e8e4c26a (diff) |
dhcpv4: getters instead of getters
From:
r := GetRouter(d.Options)
To:
r := d.Router()
Diffstat (limited to 'dhcpv4/bsdp/boot_image.go')
-rw-r--r-- | dhcpv4/bsdp/boot_image.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/dhcpv4/bsdp/boot_image.go b/dhcpv4/bsdp/boot_image.go index 58b5167..e494da4 100644 --- a/dhcpv4/bsdp/boot_image.go +++ b/dhcpv4/bsdp/boot_image.go @@ -129,18 +129,8 @@ func OptDefaultBootImageID(b BootImageID) dhcpv4.Option { return dhcpv4.Option{Code: OptionDefaultBootImageID, Value: b} } -// GetDefaultBootImageID returns the default boot image ID contained in o. -func GetDefaultBootImageID(o dhcpv4.Options) *BootImageID { - return getBootImageID(OptionDefaultBootImageID, o) -} - // OptSelectedBootImageID returns a new selected boot image ID option as per // BSDP. func OptSelectedBootImageID(b BootImageID) dhcpv4.Option { return dhcpv4.Option{Code: OptionSelectedBootImageID, Value: b} } - -// GetSelectedBootImageID returns the selected boot image ID contained in o. -func GetSelectedBootImageID(o dhcpv4.Options) *BootImageID { - return getBootImageID(OptionSelectedBootImageID, o) -} |