summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6message.go
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-05-02 00:08:35 +0200
committerGitHub <noreply@github.com>2018-05-02 00:08:35 +0200
commit412a04020e7b7082b33269fd236fa539a7d8720b (patch)
tree5bbdb031f35aa864caa840a639d2e56db68b2947 /dhcpv6/dhcpv6message.go
parent0a594bd0cd2eedcdb3b3c0ae394d03d2036e8e2c (diff)
ClientID and ServerID are now public, with no setter/getter (#52)
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r--dhcpv6/dhcpv6message.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go
index 9bfe932..1ea73f7 100644
--- a/dhcpv6/dhcpv6message.go
+++ b/dhcpv6/dhcpv6message.go
@@ -77,13 +77,14 @@ func NewSolicitForInterface(ifname string, modifiers ...Modifier) (DHCPv6, error
if err != nil {
return nil, err
}
- cid := OptClientId{}
- cid.SetClientID(Duid{
- Type: DUID_LLT,
- HwType: iana.HwTypeEthernet,
- Time: GetTime(),
- LinkLayerAddr: iface.HardwareAddr,
- })
+ cid := OptClientId{
+ Cid: Duid{
+ Type: DUID_LLT,
+ HwType: iana.HwTypeEthernet,
+ Time: GetTime(),
+ LinkLayerAddr: iface.HardwareAddr,
+ },
+ }
d.AddOption(&cid)
oro := OptRequestedOption{}