diff options
author | Andrea Barberio <insomniac@slackware.it> | 2019-04-23 20:23:45 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-04-23 21:18:28 +0100 |
commit | ebf43962e121b9c5c982d6a647a29fa4ae9b6a14 (patch) | |
tree | f0b5c068389f88a5c27acf8fa28f594f81a74f5f /dhcpv6/modifiers.go | |
parent | b071bdc86a58037f6c745647c97fca202f3caef9 (diff) |
Revert "[dhcpv6] Solicit messages derive default IAID from MAC address"
This reverts commit b071bdc86a58037f6c745647c97fca202f3caef9.
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index 200a602..eaa370d 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -77,21 +77,6 @@ func WithIANA(addrs ...OptIAAddress) Modifier { } } -// WithIAID updates an OptIANA option with the provided IAID -func WithIAID(iaid [4]byte) Modifier { - return func(d DHCPv6) { - opt := d.GetOneOption(OptionIANA) - if opt == nil { - opt = &OptIANA{ - Options: Options{}, - } - } - iaNa := opt.(*OptIANA) - copy(iaNa.IaId[:], iaid[:]) - d.UpdateOption(iaNa) - } -} - // WithDNS adds or updates an OptDNSRecursiveNameServer func WithDNS(dnses ...net.IP) Modifier { return func(d DHCPv6) { |