Home
last modified time | relevance | path

Searched refs:SO_BINDTODEVICE (Results 1 – 11 of 11) sorted by relevance

/xnu-11215/tests/
H A Dso_bindtodevice.c54 #ifndef SO_BINDTODEVICE in test_so_bindtodevice()
81 T_ASSERT_POSIX_SUCCESS(getsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, &len), in test_so_bindtodevice()
100 T_ASSERT_POSIX_SUCCESS(getsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, &len), in test_so_bindtodevice()
110 T_ASSERT_POSIX_SUCCESS(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, len), NULL); in test_so_bindtodevice()
123 T_ASSERT_POSIX_SUCCESS(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, len), in test_so_bindtodevice()
127 T_ASSERT_POSIX_SUCCESS(getsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, &len), in test_so_bindtodevice()
140 T_ASSERT_POSIX_SUCCESS(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, NULL, 0), in test_so_bindtodevice()
154 T_ASSERT_POSIX_SUCCESS(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, len), in test_so_bindtodevice()
158 T_ASSERT_POSIX_FAILURE(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, len), EINVAL, in test_so_bindtodevice()
/xnu-11215/bsd/sys/
H A Dsocket.h210 #define SO_BINDTODEVICE 0x1134 /* bind socket to a network device (max valid option len… macro
/xnu-11215/bsd/netinet/
H A Dip_output.c2303 …t_level != IPPROTO_IP && !(sopt->sopt_level == SOL_SOCKET && sopt->sopt_name == SO_BINDTODEVICE)) { in ip_ctloutput()
2327 if (sopt->sopt_level == SOL_SOCKET && sopt->sopt_name == SO_BINDTODEVICE) { in ip_ctloutput()
2630 if (sopt->sopt_level == SOL_SOCKET && sopt->sopt_name == SO_BINDTODEVICE) { in ip_ctloutput()
H A Dip_icmp.c1166 if (sopt->sopt_level == SOL_SOCKET && sopt->sopt_name == SO_BINDTODEVICE) { in icmp_dgram_ctloutput()
H A Draw_ip.c754 if (sopt->sopt_level == SOL_SOCKET && sopt->sopt_name == SO_BINDTODEVICE) { in rip_ctloutput()
H A Dudp_usrreq.c1025 if (sopt->sopt_name == SO_BINDTODEVICE) { in udp_ctloutput()
H A Dtcp_usrreq.c2292 if (sopt->sopt_name == SO_BINDTODEVICE) { in tcp_ctloutput()
/xnu-11215/bsd/netinet6/
H A Draw_ip6.c941 if (sopt->sopt_name == SO_BINDTODEVICE) { in rip6_ctloutput()
H A Dicmp6.c3177 if (sopt->sopt_name == SO_BINDTODEVICE) { in icmp6_dgram_ctloutput()
H A Dip6_output.c3079 } else if (sopt->sopt_level == SOL_SOCKET && sopt->sopt_name == SO_BINDTODEVICE) { in ip6_ctloutput()
/xnu-11215/bsd/kern/
H A Duipc_socket.c4886 if (sopt->sopt_level != SOL_SOCKET || sopt->sopt_name == SO_BINDTODEVICE) { in sosetoptlock()
5922 if (sopt->sopt_level != SOL_SOCKET || sopt->sopt_name == SO_BINDTODEVICE) { in sogetoptlock()