summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_clientid.go
diff options
context:
space:
mode:
authorChris Koch <chrisko@google.com>2023-02-18 23:55:40 -0800
committerChris K <c@chrisko.ch>2023-02-19 13:39:52 -0800
commit93dbaf95ae931da311e1671fd0f470f2aa5f6980 (patch)
tree9e316e50ebcece3b96f0c4261c63d32af8fa2c32 /dhcpv6/option_clientid.go
parentf51b4d4530334a45ccb40368ada7930d269ef44a (diff)
dhcpv6: proper DUID types
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6/option_clientid.go')
-rw-r--r--dhcpv6/option_clientid.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcpv6/option_clientid.go b/dhcpv6/option_clientid.go
index d08f6d3..d07c4d5 100644
--- a/dhcpv6/option_clientid.go
+++ b/dhcpv6/option_clientid.go
@@ -6,12 +6,12 @@ import (
// OptClientID represents a Client Identifier option as defined by RFC 3315
// Section 22.2.
-func OptClientID(d Duid) Option {
+func OptClientID(d DUID) Option {
return &optClientID{d}
}
type optClientID struct {
- Duid
+ DUID
}
func (*optClientID) Code() OptionCode {
@@ -19,16 +19,16 @@ func (*optClientID) Code() OptionCode {
}
func (op *optClientID) String() string {
- return fmt.Sprintf("%s: %s", op.Code(), op.Duid.String())
+ return fmt.Sprintf("%s: %s", op.Code(), op.DUID)
}
// parseOptClientID builds an OptClientId structure from a sequence
// of bytes. The input data does not include option code and length
// bytes.
func parseOptClientID(data []byte) (*optClientID, error) {
- cid, err := DuidFromBytes(data)
+ cid, err := DUIDFromBytes(data)
if err != nil {
return nil, err
}
- return &optClientID{*cid}, nil
+ return &optClientID{cid}, nil
}