Lines Matching refs:cmd_fd
747 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping() argument
765 write_msg(cmd_fd, &msg, 0); in do_ping()
768 read_msg(cmd_fd, &msg, 0); in do_ping()
1735 unsigned int nr, int cmd_fd, void *buf, struct xfrm_desc *desc) in child_serv() argument
1747 if (do_ping(cmd_fd, buf, page_size, src, true, 0, 0, udp_ping_send)) { in child_serv()
1755 write_msg(cmd_fd, &msg, 1); in child_serv()
1765 write_msg(cmd_fd, &msg, 1); in child_serv()
1772 if (do_ping(cmd_fd, buf, page_size, tunsrc, in child_serv()
1784 write_msg(cmd_fd, &msg, 1); in child_serv()
1795 write_msg(cmd_fd, &msg, 1); in child_serv()
1803 static int child_f(unsigned int nr, int test_desc_fd, int cmd_fd, void *buf) in child_f() argument
1821 write_msg(cmd_fd, &msg, 1); in child_f()
1822 read_msg(cmd_fd, &msg, 1); in child_f()
1843 cmd_fd, buf, &desc); in child_f()
1871 write_msg(cmd_fd, &msg, 1); in child_f()
1875 static void grand_child_serv(unsigned int nr, int cmd_fd, void *buf, in grand_child_serv() argument
1891 write_msg(cmd_fd, msg, 1); in grand_child_serv()
1896 if (do_ping(cmd_fd, buf, page_size, tun_reply ? tunsrc : src, in grand_child_serv()
1932 static int grand_child_f(unsigned int nr, int cmd_fd, void *buf) in grand_child_f() argument
1947 read_msg(cmd_fd, &msg, 1); in grand_child_f()
1948 grand_child_serv(nr, cmd_fd, buf, &msg, xfrm_sock, &seq); in grand_child_f()