summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip/sample')
-rw-r--r--pkg/tcpip/sample/tun_tcp_connect/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/tcpip/sample/tun_tcp_connect/main.go b/pkg/tcpip/sample/tun_tcp_connect/main.go
index e0ab521ff..dd5bd9b3f 100644
--- a/pkg/tcpip/sample/tun_tcp_connect/main.go
+++ b/pkg/tcpip/sample/tun_tcp_connect/main.go
@@ -275,7 +275,7 @@ func main() {
// Add default route.
subnet, err := tcpip.NewSubnet(
- tcpip.Address(net.ParseIP("10.0.1.0").To4()),
+ tcpip.Address(net.ParseIP("10.0.0.0").To4()),
tcpip.AddressMask(net.ParseIP("255.255.255.0").To4()))
if err != nil {
panic(err)
@@ -283,11 +283,11 @@ func main() {
s.SetRouteTable([]tcpip.Route{
{
Destination: subnet,
- NIC: 2,
+ NIC: 1,
},
{
Destination: header.IPv4EmptySubnet,
- NIC: 1,
+ NIC: 2,
},
})
log.Printf("Nics enabled 1:%v 2:%v 3:%v", s.CheckNIC(1), s.CheckNIC(2), s.CheckNIC(3))