summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index cef27948c..bf11c2175 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -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