summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6message.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r--dhcpv6/dhcpv6message.go8
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