Lines Matching refs:route_sock
426 static int tunnel_set_route(int route_sock, uint32_t *route_seq, char *veth,
429 if (ip4_addr_set(route_sock, (*route_seq)++, "lo",
435 if (ip4_route_set(route_sock, (*route_seq)++, veth, tunsrc, tundst)) {
448 int route_sock = -1, ret = -1;
454 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) {
459 if (ip4_addr_set(route_sock, route_seq++, veth, intsrc, PREFIX_LEN)) {
464 if (link_set_up(route_sock, route_seq++, veth)) {
469 if (tunnel_set_route(route_sock, &route_seq, veth, tunsrc, tundst)) {
476 close(route_sock);
2121 int route_sock = -1, ret = KSFT_SKIP;
2162 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE))
2170 if (veth_add(route_sock, route_seq++, veth, nsfd_childa, veth, nsfd_childb)) {
2171 close(route_sock);
2176 close(route_sock);
2181 if (close(route_sock) || close(test_desc_fd[0]) || close(results_fd[1]))