mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add String() method to AddressMask
PiperOrigin-RevId: 216770391 Change-Id: Idcdc28b2fe9e1b0b63b8119d445f05a8bcbce81e
This commit is contained in:
committed by
Shentubot
parent
e68d86e1bd
commit
86680fa002
@@ -139,6 +139,11 @@ type Address string
|
||||
// AddressMask is a bitmask for an address.
|
||||
type AddressMask string
|
||||
|
||||
// String implements Stringer.
|
||||
func (a AddressMask) String() string {
|
||||
return Address(a).String()
|
||||
}
|
||||
|
||||
// Subnet is a subnet defined by its address and mask.
|
||||
type Subnet struct {
|
||||
address Address
|
||||
|
||||
Reference in New Issue
Block a user