From 4d26b5e0b42f27fa41d872b15a7d2bc867787975 Mon Sep 17 00:00:00 2001 From: Chris Koch Date: Sat, 28 Dec 2019 04:05:29 -0800 Subject: v6: rename IAPD option to be shorter Also removes superfluous GetOne/Del proxy functions. Signed-off-by: Chris Koch --- dhcpv6/dhcpv6message.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dhcpv6/dhcpv6message.go') 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 -- cgit v1.2.3