summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4')
-rw-r--r--dhcpv4/dhcpv4.go1
-rw-r--r--dhcpv4/dhcpv4_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go
index d76a656..139c130 100644
--- a/dhcpv4/dhcpv4.go
+++ b/dhcpv4/dhcpv4.go
@@ -175,7 +175,6 @@ func NewDiscoveryForInterface(ifname string, modifiers ...Modifier) (*DHCPv4, er
// HW type and specified hardware address.
func NewDiscovery(hwaddr net.HardwareAddr, modifiers ...Modifier) (*DHCPv4, error) {
return New(PrependModifiers(modifiers,
- WithBroadcast(true),
WithHwAddr(hwaddr),
WithRequestedOptions(
OptionSubnetMask,
diff --git a/dhcpv4/dhcpv4_test.go b/dhcpv4/dhcpv4_test.go
index 45adc8c..839be65 100644
--- a/dhcpv4/dhcpv4_test.go
+++ b/dhcpv4/dhcpv4_test.go
@@ -291,7 +291,6 @@ func TestNewDiscovery(t *testing.T) {
require.Equal(t, OpcodeBootRequest, m.OpCode)
require.Equal(t, iana.HWTypeEthernet, m.HWType)
require.Equal(t, hwAddr, m.ClientHWAddr)
- require.True(t, m.IsBroadcast())
require.True(t, m.Options.Has(OptionParameterRequestList))
}