Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c186 int route_sock = -1, ret; in add_veth() local
189 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in add_veth()
192 ret = __add_veth(route_sock, route_seq++, name, nsfda, nsfdb); in add_veth()
193 close(route_sock); in add_veth()
232 int route_sock = -1, ret; in ip_addr_add() local
235 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in ip_addr_add()
238 ret = __ip_addr_add(route_sock, route_seq++, intf, in ip_addr_add()
241 close(route_sock); in ip_addr_add()
289 int route_sock = -1, ret; in ip_route_add_vrf() local
292 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in ip_route_add_vrf()
[all …]
/linux/tools/testing/selftests/net/
H A Dipsec.c465 static int tunnel_set_route(int route_sock, uint32_t *route_seq, char *veth, in tunnel_set_route() argument
468 if (ip4_addr_set(route_sock, (*route_seq)++, "lo", in tunnel_set_route()
474 if (ip4_route_set(route_sock, (*route_seq)++, veth, tunsrc, tundst)) { in tunnel_set_route()
487 int route_sock = -1, ret = -1; in init_child() local
493 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) { in init_child()
498 if (ip4_addr_set(route_sock, route_seq++, veth, intsrc, PREFIX_LEN)) { in init_child()
503 if (link_set_up(route_sock, route_seq++, veth)) { in init_child()
508 if (tunnel_set_route(route_sock, &route_seq, veth, tunsrc, tundst)) { in init_child()
515 close(route_sock); in init_child()
2268 int route_sock = -1, ret = KSFT_SKIP; in main() local
[all …]