summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_requestedoption.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_requestedoption.go')
-rw-r--r--dhcpv6/option_requestedoption.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/dhcpv6/option_requestedoption.go b/dhcpv6/option_requestedoption.go
index 64c123e..f6327f9 100644
--- a/dhcpv6/option_requestedoption.go
+++ b/dhcpv6/option_requestedoption.go
@@ -36,6 +36,10 @@ func (op *OptRequestedOption) SetRequestedOptions(opts []OptionCode) {
op.requestedOptions = opts
}
+func (op *OptRequestedOption) AddRequestedOption(opt OptionCode) {
+ op.requestedOptions = append(op.requestedOptions, opt)
+}
+
func (op *OptRequestedOption) Length() int {
return len(op.requestedOptions) * 2
}