summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample/tun_tcp_echo
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/sample/tun_tcp_echo
parente22c4cba47c9e29c7bf6e6c4d064bb7f3a71ca2f (diff)
Change tcpip.Route.Mask to tcpip.AddressMask.
PiperOrigin-RevId: 214975659 Change-Id: I7bd31a2c54f03ff52203109da312e4206701c44c
Diffstat (limited to 'pkg/tcpip/sample/tun_tcp_echo')
-rw-r--r--pkg/tcpip/sample/tun_tcp_echo/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/sample/tun_tcp_echo/main.go b/pkg/tcpip/sample/tun_tcp_echo/main.go
index a4b28a7a3..910d1257f 100644
--- a/pkg/tcpip/sample/tun_tcp_echo/main.go
+++ b/pkg/tcpip/sample/tun_tcp_echo/main.go
@@ -150,7 +150,7 @@ func main() {
s.SetRouteTable([]tcpip.Route{
{
Destination: tcpip.Address(strings.Repeat("\x00", len(addr))),
- Mask: tcpip.Address(strings.Repeat("\x00", len(addr))),
+ Mask: tcpip.AddressMask(strings.Repeat("\x00", len(addr))),
Gateway: "",
NIC: 1,
},