diff options
author | Chris Koch <chrisko@google.com> | 2023-02-18 23:55:40 -0800 |
---|---|---|
committer | Chris K <c@chrisko.ch> | 2023-02-19 13:39:52 -0800 |
commit | 93dbaf95ae931da311e1671fd0f470f2aa5f6980 (patch) | |
tree | 9e316e50ebcece3b96f0c4261c63d32af8fa2c32 /examples | |
parent | f51b4d4530334a45ccb40368ada7930d269ef44a (diff) |
dhcpv6: proper DUID types
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/packetcrafting6/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/packetcrafting6/main.go b/examples/packetcrafting6/main.go index f2c1855..13e1c22 100644 --- a/examples/packetcrafting6/main.go +++ b/examples/packetcrafting6/main.go @@ -41,9 +41,8 @@ func main() { if err != nil { log.Fatal(err) } - duid := dhcpv6.Duid{ - Type: dhcpv6.DUID_LLT, - HwType: iana.HWTypeEthernet, + duid := &dhcpv6.DUIDLLT{ + HWType: iana.HWTypeEthernet, Time: dhcpv6.GetTime(), LinkLayerAddr: mac, } |