diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2020-03-09 18:16:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 18:16:37 +0000 |
commit | bd34b7c6963c8c124b45759423d41987d428668e (patch) | |
tree | b48d7636ee8a827816653f8c4d6d394d1fe6c3e4 /dhcpv6/modifiers.go | |
parent | 200399fb8fcb0ba141e171ed0ce3ce23758b877a (diff) | |
parent | 50dff916c60c6eb81be8be8eab2cd396ad6ccd91 (diff) |
Merge pull request #361 from mikma/feature/dhcp4-o-dhcp6
dhcpv6: add DHCPv4-over-DHCPv6 support
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index ce5ce97..ffea9ed 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -119,3 +119,13 @@ func WithRequestedOptions(codes ...OptionCode) Modifier { } } } + +// WithDHCP4oDHCP6Server adds or updates an OptDHCP4oDHCP6Server +func WithDHCP4oDHCP6Server(addrs ...net.IP) Modifier { + return func(d DHCPv6) { + opt := OptDHCP4oDHCP6Server{ + DHCP4oDHCP6Servers: addrs, + } + d.UpdateOption(&opt) + } +} |