diff options
Diffstat (limited to 'dhcpv6/option_serverid.go')
-rw-r--r-- | dhcpv6/option_serverid.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcpv6/option_serverid.go b/dhcpv6/option_serverid.go index b461e8d..bdfc290 100644 --- a/dhcpv6/option_serverid.go +++ b/dhcpv6/option_serverid.go @@ -6,12 +6,12 @@ import ( // OptServerID represents a Server Identifier option as defined by RFC 3315 // Section 22.1. -func OptServerID(d Duid) Option { +func OptServerID(d DUID) Option { return &optServerID{d} } type optServerID struct { - Duid + DUID } func (*optServerID) Code() OptionCode { @@ -19,15 +19,15 @@ func (*optServerID) Code() OptionCode { } func (op *optServerID) String() string { - return fmt.Sprintf("%s: %v", op.Code(), op.Duid.String()) + return fmt.Sprintf("%s: %v", op.Code(), op.DUID) } // parseOptServerID builds an optServerID structure from a sequence of bytes. // The input data does not include option code and length bytes. func parseOptServerID(data []byte) (*optServerID, error) { - sid, err := DuidFromBytes(data) + sid, err := DUIDFromBytes(data) if err != nil { return nil, err } - return &optServerID{*sid}, nil + return &optServerID{sid}, nil } |