summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6message.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2017-12-10 16:31:02 +0000
committerAndrea Barberio <insomniac@slackware.it>2017-12-10 16:31:02 +0000
commit78200b484e408d3e7efae04a3b6cdaaccbaff29f (patch)
treeea617bbb8d820e171698f61e22d7cf57b2de113a /dhcpv6/dhcpv6message.go
parent4e5c63276c39898c4bb3662ed0f24f1d938ef3a1 (diff)
Added GetOption, GetOneOption and IsRelay methods to DHCPv6 interface
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r--dhcpv6/dhcpv6message.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go
index 93966f7..7151096 100644
--- a/dhcpv6/dhcpv6message.go
+++ b/dhcpv6/dhcpv6message.go
@@ -190,3 +190,15 @@ func (d *DHCPv6Message) Length() int {
func (d *DHCPv6Message) Options() []Option {
return d.options
}
+
+func (d *DHCPv6Message) GetOption(code OptionCode) []Option {
+ return getOptions(d.options, code, false)
+}
+
+func (d *DHCPv6Message) GetOneOption(code OptionCode) Option {
+ return getOption(d.options, code)
+}
+
+func (d *DHCPv6Message) IsRelay() bool {
+ return false
+}