diff options
author | Andrea Barberio <insomniac@slackware.it> | 2018-12-08 22:17:28 +0000 |
---|---|---|
committer | Andrea Barberio <insomniac@slackware.it> | 2018-12-08 22:17:28 +0000 |
commit | 08c8b272d33662a5448d4b789466a3de79050ed8 (patch) | |
tree | 19ba7036e1e57a3f8505a9eb2d7cacbcf9843889 /dhcpv6 | |
parent | 4dabb19b0ae8c2c0287807d4454eedee46d39a2d (diff) |
Added netconf v4 tests and required modifiers
Diffstat (limited to 'dhcpv6')
-rw-r--r-- | dhcpv6/dhcpv6message.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go index 82d44b4..545146c 100644 --- a/dhcpv6/dhcpv6message.go +++ b/dhcpv6/dhcpv6message.go @@ -280,6 +280,8 @@ func (d *DHCPv6Message) AddOption(option Option) { d.options = append(d.options, option) } +// UpdateOption updates the existing options with the passed option, adding it +// at the end if not present already func (d *DHCPv6Message) UpdateOption(option Option) { for idx, opt := range d.options { if opt.Code() == option.Code() { |