summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/bsdp/bsdp_option_machine_name.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/bsdp/bsdp_option_machine_name.go')
-rw-r--r--dhcpv4/bsdp/bsdp_option_machine_name.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/bsdp/bsdp_option_machine_name.go b/dhcpv4/bsdp/bsdp_option_machine_name.go
index cffba2e..ef38921 100644
--- a/dhcpv4/bsdp/bsdp_option_machine_name.go
+++ b/dhcpv4/bsdp/bsdp_option_machine_name.go
@@ -25,7 +25,7 @@ func (o *OptMachineName) Code() dhcpv4.OptionCode {
// ToBytes returns a serialized stream of bytes for this option.
func (o *OptMachineName) ToBytes() []byte {
- return append([]byte{byte(o.Code()), byte(o.Length())}, []byte(o.Name)...)
+ return []byte(o.Name)
}
// String returns a human-readable string for this option.