mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
test/socket_netlink_route: check that there is a route on local or main tables
A new network namespace has only the local route table. PiperOrigin-RevId: 324303629
This commit is contained in:
@@ -577,7 +577,10 @@ TEST(NetlinkRouteTest, GetRouteDump) {
|
||||
|
||||
std::cout << std::endl;
|
||||
|
||||
if (msg->rtm_table == RT_TABLE_MAIN) {
|
||||
// If the test is running in a new network namespace, it will have only
|
||||
// the local route table.
|
||||
if (msg->rtm_table == RT_TABLE_MAIN ||
|
||||
(!IsRunningOnGvisor() && msg->rtm_table == RT_TABLE_LOCAL)) {
|
||||
routeFound = true;
|
||||
dstFound = rtDstFound && dstFound;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user