summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/adapters/gonet
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2018-09-28 12:16:47 -0700
committerShentubot <shentubot@google.com>2018-09-28 12:18:15 -0700
commitfb65b0b471621b430969fe1c3009bee68209bf67 (patch)
tree7e4d84cb3596bb2def1284388628f6c5f078b58a /pkg/tcpip/adapters/gonet
parente22c4cba47c9e29c7bf6e6c4d064bb7f3a71ca2f (diff)
Change tcpip.Route.Mask to tcpip.AddressMask.
PiperOrigin-RevId: 214975659 Change-Id: I7bd31a2c54f03ff52203109da312e4206701c44c
Diffstat (limited to 'pkg/tcpip/adapters/gonet')
-rw-r--r--pkg/tcpip/adapters/gonet/gonet_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/adapters/gonet/gonet_test.go b/pkg/tcpip/adapters/gonet/gonet_test.go
index 86a82f21d..79b7c77ee 100644
--- a/pkg/tcpip/adapters/gonet/gonet_test.go
+++ b/pkg/tcpip/adapters/gonet/gonet_test.go
@@ -68,7 +68,7 @@ func newLoopbackStack() (*stack.Stack, *tcpip.Error) {
// IPv4
{
Destination: tcpip.Address(strings.Repeat("\x00", 4)),
- Mask: tcpip.Address(strings.Repeat("\x00", 4)),
+ Mask: tcpip.AddressMask(strings.Repeat("\x00", 4)),
Gateway: "",
NIC: NICID,
},
@@ -76,7 +76,7 @@ func newLoopbackStack() (*stack.Stack, *tcpip.Error) {
// IPv6
{
Destination: tcpip.Address(strings.Repeat("\x00", 16)),
- Mask: tcpip.Address(strings.Repeat("\x00", 16)),
+ Mask: tcpip.AddressMask(strings.Repeat("\x00", 16)),
Gateway: "",
NIC: NICID,
},