summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6message.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2017-12-11 09:49:04 +0000
committerAndrea Barberio <insomniac@slackware.it>2017-12-11 09:49:04 +0000
commit2f0167c8c52053b9422665757200d04fc694792f (patch)
tree3e8de2e118240f4b2d91c6d9161024cb5bd03c89 /dhcpv6/dhcpv6message.go
parent2c9cdc34d045b5cb528ae086fd2b875c0c73d145 (diff)
Added OptClientArchType
Diffstat (limited to 'dhcpv6/dhcpv6message.go')
-rw-r--r--dhcpv6/dhcpv6message.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go
index 8368d6c..cd8ff61 100644
--- a/dhcpv6/dhcpv6message.go
+++ b/dhcpv6/dhcpv6message.go
@@ -152,15 +152,8 @@ func NewRequestFromAdvertise(advertise DHCPv6) (DHCPv6, error) {
},
}
req.AddOption(&nii)
- // add OPTION_CLIENT_ARCH_TYPE
- // TODO implement OptionClientArchType
- cat := OptionGeneric{
- OptionCode: OPTION_CLIENT_ARCH_TYPE,
- OptionData: []byte{
- 0, // Intel - see rfc4578
- 7, // EFI BC
- },
- }
+ cat := OptClientArchType{}
+ cat.SetArchType(EFI_BC)
req.AddOption(&cat)
// add OPTION_VENDOR_CLASS, only if present in the original request
// TODO implement OptionVendorClass