diff options
author | Chris Koch <chrisko@google.com> | 2019-12-28 00:57:21 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2020-03-05 15:51:55 +0000 |
commit | c483f8beb41f894c3d9c5adf0781c73ca1fbd7ac (patch) | |
tree | 73f0afcf6f50af83220f4f2d67e7edbc2cb71326 /dhcpv6/modifiers.go | |
parent | 8d3e32a40580e3e227f64d9068f84b321e7921b2 (diff) |
v6: add ClientID getter
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r-- | dhcpv6/modifiers.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go index d5e24c0..4d00a0c 100644 --- a/dhcpv6/modifiers.go +++ b/dhcpv6/modifiers.go @@ -11,8 +11,7 @@ import ( // WithClientID adds a client ID option to a DHCPv6 packet func WithClientID(duid Duid) Modifier { return func(d DHCPv6) { - cid := OptClientId{Cid: duid} - d.UpdateOption(&cid) + d.UpdateOption(OptClientID(duid)) } } |