diff options
author | Andrea Barberio <insomniac@slackware.it> | 2017-12-29 10:31:54 +0000 |
---|---|---|
committer | Andrea Barberio <insomniac@slackware.it> | 2017-12-29 10:31:54 +0000 |
commit | c19213ee3957d06d102303af1a0d5970abbbb1c1 (patch) | |
tree | be2455e4efe2dad563f8abcc24a282ba53bfe64e /dhcpv6/option_requestedoption.go | |
parent | e61a9d0e4ba6b42ddf5ef5132c4333c366d69207 (diff) |
Added OptRequestedOption.AddRequestedOption
Diffstat (limited to 'dhcpv6/option_requestedoption.go')
-rw-r--r-- | dhcpv6/option_requestedoption.go | 4 |
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 } |