Lines Matching refs:cmd_fd
705 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping() argument
723 write_msg(cmd_fd, &msg, 0); in do_ping()
726 read_msg(cmd_fd, &msg, 0); in do_ping()
1597 unsigned int nr, int cmd_fd, void *buf, struct xfrm_desc *desc) in child_serv() argument
1609 if (do_ping(cmd_fd, buf, page_size, src, true, 0, 0, udp_ping_send)) { in child_serv()
1617 write_msg(cmd_fd, &msg, 1); in child_serv()
1627 write_msg(cmd_fd, &msg, 1); in child_serv()
1634 if (do_ping(cmd_fd, buf, page_size, tunsrc, in child_serv()
1646 write_msg(cmd_fd, &msg, 1); in child_serv()
1657 write_msg(cmd_fd, &msg, 1); in child_serv()
1665 static int child_f(unsigned int nr, int test_desc_fd, int cmd_fd, void *buf) in child_f() argument
1683 write_msg(cmd_fd, &msg, 1); in child_f()
1684 read_msg(cmd_fd, &msg, 1); in child_f()
1705 cmd_fd, buf, &desc); in child_f()
1730 write_msg(cmd_fd, &msg, 1); in child_f()
1734 static void grand_child_serv(unsigned int nr, int cmd_fd, void *buf, in grand_child_serv() argument
1750 write_msg(cmd_fd, msg, 1); in grand_child_serv()
1755 if (do_ping(cmd_fd, buf, page_size, tun_reply ? tunsrc : src, in grand_child_serv()
1791 static int grand_child_f(unsigned int nr, int cmd_fd, void *buf) in grand_child_f() argument
1806 read_msg(cmd_fd, &msg, 1); in grand_child_f()
1807 grand_child_serv(nr, cmd_fd, buf, &msg, xfrm_sock, &seq); in grand_child_f()