diff options
author | Chris Koch <chrisko@google.com> | 2019-12-28 04:05:29 -0800 |
---|---|---|
committer | Chris K <c@chrisko.ch> | 2020-03-11 13:52:51 -0700 |
commit | 4d26b5e0b42f27fa41d872b15a7d2bc867787975 (patch) | |
tree | 08b8a584619b1ba4d1245fc1c0c8a184e193fdef /dhcpv6/dhcpv6message.go | |
parent | 6469ef2f3d85469f0f7cbf3cb40c2f931e406397 (diff) |
v6: rename IAPD option to be shorter
Also removes superfluous GetOne/Del proxy functions.
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r-- | dhcpv6/dhcpv6message.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go index cb0503f..7d96ce3 100644 --- a/dhcpv6/dhcpv6message.go +++ b/dhcpv6/dhcpv6message.go @@ -68,17 +68,17 @@ func (mo MessageOptions) OneIANA() *OptIANA { } // IAPD returns all Identity Association for Prefix Delegation options. -func (mo MessageOptions) IAPD() []*OptIAForPrefixDelegation { +func (mo MessageOptions) IAPD() []*OptIAPD { opts := mo.Get(OptionIAPD) - var ianas []*OptIAForPrefixDelegation + var ianas []*OptIAPD for _, o := range opts { - ianas = append(ianas, o.(*OptIAForPrefixDelegation)) + ianas = append(ianas, o.(*OptIAPD)) } return ianas } // OneIAPD returns the first IAPD option. -func (mo MessageOptions) OneIAPD() *OptIAForPrefixDelegation { +func (mo MessageOptions) OneIAPD() *OptIAPD { iapds := mo.IAPD() if len(iapds) == 0 { return nil |