rename DHCP Client CIDRBits method

This commit is contained in:
soypat
2025-07-19 21:22:39 -03:00
parent 6b3062481e
commit dd1a15b206
+1 -8
View File
@@ -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)
}