diff options
Diffstat (limited to 'dhcpv4/option_broadcast_address.go')
-rw-r--r-- | dhcpv4/option_broadcast_address.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcpv4/option_broadcast_address.go b/dhcpv4/option_broadcast_address.go index fdce946..1f6d4b8 100644 --- a/dhcpv4/option_broadcast_address.go +++ b/dhcpv4/option_broadcast_address.go @@ -29,8 +29,7 @@ func (o *OptBroadcastAddress) Code() OptionCode { // ToBytes returns a serialized stream of bytes for this option. func (o *OptBroadcastAddress) ToBytes() []byte { - ret := []byte{byte(o.Code()), byte(o.Length())} - return append(ret, o.BroadcastAddress.To4()...) + return []byte(o.BroadcastAddress.To4()) } // String returns a human-readable string. |