Export read-only tcpip.Subnet.Mask

PiperOrigin-RevId: 214023383
Change-Id: I5a7572f949840fb68a3ffb7342e6a3524bd00864
This commit is contained in:
Tamir Duberstein
2018-09-21 12:07:29 -07:00
committed by Shentubot
parent b4321f4447
commit 7fa57ee579
+5
View File
@@ -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