diff options
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r-- | dhcpv6/dhcpv6message.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go index 4e5717f..745a837 100644 --- a/dhcpv6/dhcpv6message.go +++ b/dhcpv6/dhcpv6message.go @@ -116,6 +116,18 @@ func (mo MessageOptions) BootFileURL() string { return "" } +// BootFileParam returns the Boot File Param option as defined by RFC 5970. +func (mo MessageOptions) BootFileParam() []string { + opt := mo.Options.GetOne(OptionBootfileParam) + if opt == nil { + return nil + } + if u, ok := opt.(optBootFileParam); ok { + return []string(u) + } + return nil +} + // ElapsedTime returns the Elapsed Time option as defined by RFC 3315 Section 22.9. // // ElapsedTime returns a duration of 0 if the option is not present. |