Running main() from ../../third_party/googletest/googletest/src/gtest_main.cc
[==========] Running 6 tests from 4 test suites.
[----------] Global test environment set-up.
[----------] 3 tests from NetstackLaunchTest
[ RUN ] NetstackLaunchTest.AddEthernetInterface
[00285.811522][225722985][0][netstack] INFO: main.go(73): started
[00285.812251][225722985][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00285.812416][225722985][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
[00285.812562][225722985][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00285.812607][225722985][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00285.812700][225722985][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00285.837932][225722985][0][netstack] INFO: netstack.go(695): NIC eth2 added
[00285.838131][225722985][0][netstack] INFO: netstack.go(710): NIC eth2: link-local IPv6: fe80::ac5a:fdff:fe9a:e492
[ OK ] NetstackLaunchTest.AddEthernetInterface (122 ms)
[ RUN ] NetstackLaunchTest.AddEthernetDevice
not able to conenct to log sink, will write logs to stderr: ErrPeerClosed: zx.Channel.Write[00285.972098][1179676697][0][netstack] INFO: main.go(73): started
[00285.972745][1179676697][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00285.972883][1179676697][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
[00285.972981][1179676697][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00285.973055][1179676697][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00285.973141][1179676697][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00285.999617][1179676697][0][netstack] INFO: netstack.go(695): NIC en0 added
[00285.999808][1179676697][0][netstack] INFO: netstack.go(710): NIC en0: link-local IPv6: fe80::4002:b2ff:fe9f:dcaf
[ OK ] NetstackLaunchTest.AddEthernetDevice (165 ms)
[ RUN ] NetstackLaunchTest.DHCPRequestSent
[00286.146825][781665619][0][netstack] INFO: main.go(73): started
[00286.148090][781665619][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.148223][781665619][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
[00286.148277][781665619][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.148311][781665619][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00286.148351][781665619][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00286.151270][781665619][0][netstack] INFO: netstack.go(695): NIC dhcp_test_interface added
[00286.151417][781665619][0][netstack] INFO: netstack.go(710): NIC dhcp_test_interface: link-local IPv6: fe80::c6a:57ff:fed1:94b5
[00286.158073][781665619][0][netstack] INFO: netstack.go(449): NIC dhcp_test_interface: starting
[00286.158459][781665619][0][netstack, routes] VLOG(2): RouteTable:Update route table for routes to nic-2 with action:2
[00286.158859][781665619][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00286.159130][781665619][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00286.159212][781665619][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:0.0.0.0 Mask:0.0.0.0 Gateway: NIC:2} with metric:99999, trackIf=false, dynamic=true, enabled=true
[00286.159859][781665619][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
0.0.0.0/0 nic 2 metric[static] 99999 (dynamic)
[00286.159942][781665619][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination::: Mask::: Gateway: NIC:2} with metric:99999, trackIf=false, dynamic=true, enabled=true
[00286.159974][781665619][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
0.0.0.0/0 nic 2 metric[static] 99999 (dynamic)
::/0 nic 2 metric[static] 99999 (dynamic)
[00286.160058][781665619][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} {Destination:0.0.0.0 Mask:0.0.0.0 Gateway: NIC:2} {Destination::: Mask::: Gateway: NIC:2}]
[00286.160162][781665619][0][netstack] VLOG(2): inferring network reachability
[ OK ] NetstackLaunchTest.DHCPRequestSent (155 ms)
[----------] 3 tests from NetstackLaunchTest (442 ms total)
[----------] 1 test from NetstackFilterTest
[ RUN ] NetstackFilterTest.TestRuleset
created static ip address: 192.168.250.1
not able to conenct to log sink, will write logs to stderr: ErrPeerClosed: zx.Channel.Write[00286.327600][1863800483][0][netstack] INFO: main.go(73): started
[00286.328184][1863800483][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.328465][1863800483][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
[00286.328559][1863800483][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.328634][1863800483][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00286.328719][1863800483][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00286.369275][1863800483][0][netstack] INFO: netstack.go(695): NIC en0 added
[00286.369445][1863800483][0][netstack] INFO: netstack.go(710): NIC en0: link-local IPv6: fe80::388d:30ff:fe67:9ebd
DstHost: 192.168.250.1, DstPort: 5000
NewDstHost: 192.168.250.1, NewDstPort: 5001
[ OK ] NetstackFilterTest.TestRuleset (284 ms)
[----------] 1 test from NetstackFilterTest (284 ms total)
[----------] 1 test from NetstackIoctlTest
[ RUN ] NetstackIoctlTest.RunIoctlClient
not able to conenct to log sink, will write logs to stderr: ErrPeerClosed: zx.Channel.Write[00286.558080][510280907][0][netstack] INFO: main.go(73): started
[00286.558663][510280907][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.558824][510280907][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
[00286.558887][510280907][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.558922][510280907][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00286.558963][510280907][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00286.585551][510280907][0][netstack] INFO: netstack.go(695): NIC en0 added
[00286.585933][510280907][0][netstack] INFO: netstack.go(710): NIC en0: link-local IPv6: fe80::c400:86ff:fe62:3ba9
[ OK ] NetstackIoctlTest.RunIoctlClient (227 ms)
[----------] 1 test from NetstackIoctlTest (227 ms total)
[----------] 1 test from NetstackNoNetworkTest
[ RUN ] NetstackNoNetworkTest.DisableEthernetInterface
[00286.829163][2059756017][0][netstack] INFO: main.go(73): started
[00286.829823][2059756017][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.830091][2059756017][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
[00286.830191][2059756017][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1} with metric:100, trackIf=true, dynamic=false, enabled=true
[00286.830265][2059756017][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
::1/128 nic 1 metric[if] 100 (static)
[00286.830350][2059756017][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00286.854714][2059756017][0][netstack] INFO: netstack.go(695): NIC en0 added
[00286.854952][2059756017][0][netstack] INFO: netstack.go(710): NIC en0: link-local IPv6: fe80::3cec:29ff:fe7e:ee87
[00286.865355][2059756017][0][netstack] INFO: netstack_service.go(307): net address {IpAddressTag:1 Ipv4:{_:{} Addr:[192 168 0 2]} Ipv6:{_:{} Addr:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]}}
[00286.865520][2059756017][0][netstack] INFO: netstack.go(306): adding static IP 192.168.0.2/32 to NIC 2, creating subnet route {Destination:192.168.0.2 Mask:255.255.255.255 Gateway: NIC:2} with metric=<not-set>, dynamic=false
[00286.865709][2059756017][0][netstack, routes] VLOG(2): RouteTable:Adding route {Destination:192.168.0.2 Mask:255.255.255.255 Gateway: NIC:2} with metric:100, trackIf=true, dynamic=false, enabled=false
[00286.865912][2059756017][0][netstack, routes] VLOG(2): Current Route Table:
127.0.0.1/32 nic 1 metric[if] 100 (static)
192.168.0.2/32 nic 2 metric[if] 100 (static) (disabled)
::1/128 nic 1 metric[if] 100 (static)
[00286.866088][2059756017][0][netstack, routes] VLOG(2): RouteTable:Netstack route table: [{Destination:127.0.0.1 Mask:255.255.255.255 Gateway: NIC:1} {Destination:::1 Mask:ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Gateway: NIC:1}]
[00286.866181][2059756017][0][netstack] VLOG(2): inferring network reachability
Running main() from ../../third_party/googletest/googletest/src/gtest_main.cc
[==========] Running 4 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 4 tests from NoNetworkTest
[ RUN ] NoNetworkTest.NonBlockingConnectHostV4
[00287.016405][2059756017][0][netstack] VLOG(1): socket_server.go:621: no route
[ OK ] NoNetworkTest.NonBlockingConnectHostV4 (1 ms)
[ RUN ] NoNetworkTest.NonBlockingConnectHostV6
[00287.017587][2059756017][0][netstack] VLOG(1): socket_server.go:621: no route
[ OK ] NoNetworkTest.NonBlockingConnectHostV6 (1 ms)
[ RUN ] NoNetworkTest.NonBlockingConnectNetV4
[00287.018438][2059756017][0][netstack] VLOG(1): socket_server.go:621: network is unreachable
[ OK ] NoNetworkTest.NonBlockingConnectNetV4 (0 ms)
[ RUN ] NoNetworkTest.NonBlockingConnectNetV6
[00287.019337][2059756017][0][netstack] VLOG(1): socket_server.go:621: network is unreachable
[ OK ] NoNetworkTest.NonBlockingConnectNetV6 (2 ms)
[----------] 4 tests from NoNetworkTest (5 ms total)
[----------] Global test environment tear-down
[==========] 4 tests from 1 test suite ran. (6 ms total)
[ PASSED ] 4 tests.
[ OK ] NetstackNoNetworkTest.DisableEthernetInterface (349 ms)
[----------] 1 test from NetstackNoNetworkTest (350 ms total)
[----------] Global test environment tear-down
[==========] 6 tests from 4 test suites ran. (1304 ms total)
[ PASSED ] 6 tests.