Lines Matching defs:route_sock
466 static int tunnel_set_route(int route_sock, uint32_t *route_seq, char *veth,
469 if (ip4_addr_set(route_sock, (*route_seq)++, "lo",
475 if (ip4_route_set(route_sock, (*route_seq)++, veth, tunsrc, tundst)) {
488 int route_sock = -1, ret = -1;
494 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) {
499 if (ip4_addr_set(route_sock, route_seq++, veth, intsrc, PREFIX_LEN)) {
504 if (link_set_up(route_sock, route_seq++, veth)) {
509 if (tunnel_set_route(route_sock, &route_seq, veth, tunsrc, tundst)) {
516 close(route_sock);
2271 int route_sock = -1, ret = KSFT_SKIP;
2312 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE))
2320 if (veth_add(route_sock, route_seq++, veth, nsfd_childa, veth, nsfd_childb)) {
2321 close(route_sock);
2326 close(route_sock);
2331 if (close(route_sock) || close(test_desc_fd[0]) || close(results_fd[1]))