mirror of
https://github.com/soypat/lneto.git
synced 2026-09-10 16:49:37 +00:00
rename DHCP Client CIDRBits method
This commit is contained in:
+1
-8
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user