diff options
author | Tamir Duberstein <tamird@google.com> | 2018-09-21 12:06:27 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-21 12:07:29 -0700 |
commit | 7fa57ee5798c878faef9a56847ce53420958cce3 (patch) | |
tree | 20acb832b4755122f7599825c344770fed8b70ea /pkg/tcpip/tcpip.go | |
parent | b4321f444727cc64da0b29623764223e48dbfddd (diff) |
Export read-only tcpip.Subnet.Mask
PiperOrigin-RevId: 214023383
Change-Id: I5a7572f949840fb68a3ffb7342e6a3524bd00864
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index b1bd5117f..a5259341b 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -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 |