summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/dhcpv6message.go2
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() {