Home | History | Annotate | Download | only in net

Lines Matching refs:domain

184 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain)
197 if (domain == PF_RDS) {
219 if (do_zerocopy && domain == PF_RDS) {
295 static void setup_sockaddr(int domain, const char *str_addr,
301 switch (domain) {
319 error(1, 0, "illegal domain");
323 static int do_setup_tx(int domain, int type, int protocol)
327 fd = socket(domain, type, protocol);
335 if (domain != PF_PACKET && domain != PF_RDS)
339 if (domain == PF_RDS) {
393 static bool do_recv_completion(int fd, int domain)
402 if (domain == PF_RDS)
461 static void do_recv_completions(int fd, int domain)
463 while (do_recv_completion(fd, domain)) {}
467 static void do_recv_remaining_completions(int fd, int domain)
473 if (do_poll(fd, domain == PF_RDS ? POLLIN : POLLERR))
474 do_recv_completions(fd, domain);
482 static void do_tx(int domain, int type, int protocol)
495 fd = do_setup_tx(domain, type, protocol);
497 if (domain == PF_PACKET) {
524 if (domain == PF_PACKET || protocol == IPPROTO_RAW) {
534 if (domain == PF_RDS) {
551 do_sendmsg(fd, &msg, cfg_zerocopy, domain);
555 do_recv_completions(fd, domain);
561 do_recv_remaining_completions(fd, domain);
571 static int do_setup_rx(int domain, int type, int protocol)
578 if (domain == PF_PACKET)
584 fd = socket(domain, type, protocol);
652 static void do_rx(int domain, int type, int protocol)
657 fd = do_setup_rx(domain, type, protocol);
676 static void do_test(int domain, int type, int protocol)
680 if (cfg_cork && (domain == PF_PACKET || type != SOCK_DGRAM))
689 do_rx(domain, type, protocol);
691 domain, type, protocol);