Home
last modified time | relevance | path

Searched refs:lo_intf (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/net/tcp_ao/
H A Dself-connect.c8 static void __setup_lo_intf(const char *lo_intf, in __setup_lo_intf() argument
14 if (ip_addr_add(lo_intf, TEST_FAMILY, local_addr, prefix)) in __setup_lo_intf()
15 test_error("Failed to add %s ip address", lo_intf); in __setup_lo_intf()
17 if (link_set_up(lo_intf)) in __setup_lo_intf()
18 test_error("Failed to bring %s up", lo_intf); in __setup_lo_intf()
20 if (ip_route_add(lo_intf, TEST_FAMILY, local_addr, local_addr)) in __setup_lo_intf()
21 test_error("Failed to add a local route %s", lo_intf); in __setup_lo_intf()
24 static void setup_lo_intf(const char *lo_intf) in setup_lo_intf() argument
27 __setup_lo_intf(lo_intf, "::1", 128); in setup_lo_intf()
29 __setup_lo_intf(lo_intf, "127.0.0.1", 8); in setup_lo_intf()