diff --git a/dhcpv4/client.go b/dhcpv4/client.go index 65e91be..93104e6 100644 --- a/dhcpv4/client.go +++ b/dhcpv4/client.go @@ -342,7 +342,7 @@ func (d *Client) DNSServerFirst() netip.Addr { return d.dns[0] } -func (d *Client) CIDRBits() uint8 { +func (d *Client) SubnetCIDRBits() uint8 { if !d.subnet.valid { return 0 } @@ -367,10 +367,3 @@ func maybeU32(b []byte) uint32 { } return binary.BigEndian.Uint32(b) } - -func maybe4byte(b []byte) [4]byte { - if len(b) != 4 { - return [4]byte{} - } - return [4]byte(b) -}