summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_bootfileurl.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_bootfileurl.go')
-rw-r--r--dhcpv6/option_bootfileurl.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/dhcpv6/option_bootfileurl.go b/dhcpv6/option_bootfileurl.go
index e0ad63e..d34f5ec 100644
--- a/dhcpv6/option_bootfileurl.go
+++ b/dhcpv6/option_bootfileurl.go
@@ -2,8 +2,6 @@ package dhcpv6
import (
"fmt"
-
- "github.com/u-root/u-root/pkg/uio"
)
// OptBootFileURL implements the OptionBootfileURL option
@@ -21,11 +19,7 @@ func (op *OptBootFileURL) Code() OptionCode {
// ToBytes serializes the option and returns it as a sequence of bytes
func (op *OptBootFileURL) ToBytes() []byte {
- buf := uio.NewBigEndianBuffer(nil)
- buf.Write16(uint16(OptionBootfileURL))
- buf.Write16(uint16(len(op.BootFileURL)))
- buf.WriteBytes(op.BootFileURL)
- return buf.Data()
+ return op.BootFileURL
}
// Length returns the option length in bytes