Lines Matching refs:cmd_fd
746 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping() argument
764 write_msg(cmd_fd, &msg, 0); in do_ping()
767 read_msg(cmd_fd, &msg, 0); in do_ping()
1734 unsigned int nr, int cmd_fd, void *buf, struct xfrm_desc *desc) in child_serv() argument
1746 if (do_ping(cmd_fd, buf, page_size, src, true, 0, 0, udp_ping_send)) { in child_serv()
1754 write_msg(cmd_fd, &msg, 1); in child_serv()
1764 write_msg(cmd_fd, &msg, 1); in child_serv()
1771 if (do_ping(cmd_fd, buf, page_size, tunsrc, in child_serv()
1783 write_msg(cmd_fd, &msg, 1); in child_serv()
1794 write_msg(cmd_fd, &msg, 1); in child_serv()
1802 static int child_f(unsigned int nr, int test_desc_fd, int cmd_fd, void *buf) in child_f() argument
1820 write_msg(cmd_fd, &msg, 1); in child_f()
1821 read_msg(cmd_fd, &msg, 1); in child_f()
1842 cmd_fd, buf, &desc); in child_f()
1870 write_msg(cmd_fd, &msg, 1); in child_f()
1874 static void grand_child_serv(unsigned int nr, int cmd_fd, void *buf, in grand_child_serv() argument
1890 write_msg(cmd_fd, msg, 1); in grand_child_serv()
1895 if (do_ping(cmd_fd, buf, page_size, tun_reply ? tunsrc : src, in grand_child_serv()
1931 static int grand_child_f(unsigned int nr, int cmd_fd, void *buf) in grand_child_f() argument
1946 read_msg(cmd_fd, &msg, 1); in grand_child_f()
1947 grand_child_serv(nr, cmd_fd, buf, &msg, xfrm_sock, &seq); in grand_child_f()