Lines Matching defs:veth
3 * ipsec.c - Check xfrm on veth inside a net-ns.
18 #include <linux/veth.h>
53 /* /30 mask for one veth connection */
316 const char veth_type[] = "veth";
464 static int tunnel_set_route(int route_sock, uint32_t *route_seq, char *veth,
473 if (ip4_route_set(route_sock, (*route_seq)++, veth, tunsrc, tundst)) {
481 static int init_child(int nsfd, char *veth, unsigned int src, unsigned int dst)
497 if (ip4_addr_set(route_sock, route_seq++, veth, intsrc, PREFIX_LEN)) {
502 if (link_set_up(route_sock, route_seq++, veth)) {
503 printk("Failed to bring up %s", veth);
507 if (tunnel_set_route(route_sock, &route_seq, veth, tunsrc, tundst)) {
508 printk("Failed to add tunnel route on %s", veth);
1954 static int start_child(unsigned int nr, char *veth, int test_desc_fd[2])
1960 if (init_child(nsfd_childa, veth, child_ip(nr), grchild_ip(nr)))
1963 if (init_child(nsfd_childb, veth, grchild_ip(nr), child_ip(nr)))
2312 char veth[VETH_LEN];
2314 snprintf(veth, VETH_LEN, VETH_FMT, i);
2316 if (veth_add(route_sock, route_seq++, veth, nsfd_childa, veth, nsfd_childb)) {
2318 ksft_exit_fail_msg("Failed to create veth device");
2321 if (start_child(i, veth, test_desc_fd)) {