mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Export read-only tcpip.Subnet.Mask
PiperOrigin-RevId: 214023383 Change-Id: I5a7572f949840fb68a3ffb7342e6a3524bd00864
This commit is contained in:
committed by
Shentubot
parent
b4321f4447
commit
7fa57ee579
@@ -202,6 +202,11 @@ func (s *Subnet) Prefix() int {
|
||||
return len(s.mask) * 8
|
||||
}
|
||||
|
||||
// Mask returns the subnet mask.
|
||||
func (s *Subnet) Mask() AddressMask {
|
||||
return s.mask
|
||||
}
|
||||
|
||||
// NICID is a number that uniquely identifies a NIC.
|
||||
type NICID int32
|
||||
|
||||
|
||||
Reference in New Issue
Block a user