summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_requested_ip_address.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_requested_ip_address.go')
-rw-r--r--dhcpv4/option_requested_ip_address.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcpv4/option_requested_ip_address.go b/dhcpv4/option_requested_ip_address.go
index 3539278..403f262 100644
--- a/dhcpv4/option_requested_ip_address.go
+++ b/dhcpv4/option_requested_ip_address.go
@@ -30,8 +30,7 @@ func (o *OptRequestedIPAddress) Code() OptionCode {
// ToBytes returns a serialized stream of bytes for this option.
func (o *OptRequestedIPAddress) ToBytes() []byte {
- ret := []byte{byte(o.Code()), byte(o.Length())}
- return append(ret, o.RequestedAddr.To4()...)
+ return o.RequestedAddr.To4()
}
// String returns a human-readable string.