Home
last modified time | relevance | path

Searched refs:IPPROTO_IP (Results 1 – 25 of 74) sorted by relevance

123

/third_party/ltp/testcases/network/multicast/mc_opts/
Dmc_verify_opts_error.c44 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, &simr, in main()
49 (s, IPPROTO_IP, IP_MULTICAST_IF, &gimr, (socklen_t *)&len) != 0) in main()
54 (s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, (socklen_t *)&len) != 0) in main()
59 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) != 0) in main()
62 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_LOOP, &do_loop, sizeof(char)) in main()
65 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_LOOP, &no_loop, sizeof(char)) in main()
70 (s, IPPROTO_IP, IP_MULTICAST_LOOP, &no_loop, in main()
Dmc_verify_opts.c54 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, in main()
64 (s, IPPROTO_IP, IP_MULTICAST_IF, &gimr, (socklen_t *)&len) != 0) { in main()
83 (s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, (socklen_t *)&len) != 0) { in main()
93 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, in main()
100 (s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, (socklen_t *)&len) != 0) { in main()
111 (s, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, in main()
125 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, sizeof(char)) != in main()
132 (s, IPPROTO_IP, IP_MULTICAST_LOOP, &loop, in main()
/third_party/boost/boost/asio/ip/
Dmulticast.hpp51 BOOST_ASIO_OS_DEF(IPPROTO_IP),
79 BOOST_ASIO_OS_DEF(IPPROTO_IP),
107 BOOST_ASIO_OS_DEF(IPPROTO_IP),
143 BOOST_ASIO_OS_DEF(IPPROTO_IP),
180 BOOST_ASIO_OS_DEF(IPPROTO_IP),
Dunicast.hpp59 BOOST_ASIO_OS_DEF(IPPROTO_IP),
/third_party/pulseaudio/src/pulsecore/
Dsocket-util.c167 #if defined(IPTOS_LOWDELAY) && defined(IP_TOS) && (defined(SOL_IP) || defined(IPPROTO_IP)) in pa_make_tcp_socket_low_delay()
173 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_tcp_socket_low_delay()
185 #if defined(IPTOS_LOWDELAY) && defined(IP_TOS) && (defined(SOL_IP) || defined(IPPROTO_IP)) in pa_make_udp_socket_low_delay()
191 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_udp_socket_low_delay()
/third_party/libnl/include/linux-private/linux/
Din.h29 IPPROTO_IP = 0, /* Dummy protocol for TCP */ enumerator
30 #define IPPROTO_IP IPPROTO_IP macro
/third_party/ltp/testcases/network/multicast/mc_member/
Dmc_member_test.c86 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, in main()
129 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, in join_group()
164 if (setsockopt(s, IPPROTO_IP, IP_DROP_MEMBERSHIP, in leave_group()
/third_party/python/Tools/demo/
Dmcast.py41 s.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl_bin)
69 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg02.c57 sdr = SAFE_SOCKET(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
61 sdw = SAFE_SOCKET(PF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
/third_party/grpc/test/core/iomgr/
Dsocket_utils_test.cc50 if (0 != setsockopt(fd, IPPROTO_IP, IP_TOS, &m->option_value, in mutate_fd()
54 if (0 != getsockopt(fd, IPPROTO_IP, IP_TOS, &newval, &intlen)) { in mutate_fd()
/third_party/ltp/testcases/network/multicast/mc_commo/
Dmc_send.c74 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, in main()
91 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0) { in main()
Dmc_recv.c81 (s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &imr, in main()
/third_party/mingw-w64/mingw-w64-headers/include/
Dwsipv6ok.h40 #undef IPPROTO_IP
41 #define IPPROTO_IP IPPROTO_IP_IPV6INCOMPATIBLE macro
/third_party/gstreamer/gstreamer/libs/gst/net/
Dgstnetutils.c58 if (setsockopt (fd, IPPROTO_IP, IP_TOS, &tos, sizeof (tos)) < 0) { in gst_net_utils_set_socket_dscp()
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-send.c399 if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &j, sizeof(j)) < 0 || in pa__init()
400 setsockopt(sap_fd, IPPROTO_IP, IP_MULTICAST_LOOP, &j, sizeof(j)) < 0) { in pa__init()
408 if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &_ttl, sizeof(_ttl)) < 0) { in pa__init()
413 if (setsockopt(sap_fd, IPPROTO_IP, IP_MULTICAST_TTL, &_ttl, sizeof(_ttl)) < 0) { in pa__init()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_upnp_ssdp.c750 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, in ssdp_listener_open()
752 setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, in ssdp_listener_open()
886 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_IF, in ssdp_open_multicast_sock()
893 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, in ssdp_open_multicast_sock()
910 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in ssdp_open_multicast_sock()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_upnp_ssdp.c750 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, in ssdp_listener_open()
752 setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, in ssdp_listener_open()
886 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_IF, in ssdp_open_multicast_sock()
893 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, in ssdp_open_multicast_sock()
910 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in ssdp_open_multicast_sock()
/third_party/toybox/toys/pending/
Dtraceroute.c132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); in send_probe4()
553 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_OPTIONS, in traceroute_main()
564 setsockopt(TT.snd_sock, IPPROTO_IP, IP_TOS, &tyser, sizeof(tyser)) < 0) in traceroute_main()
569 (setsockopt(TT.snd_sock, IPPROTO_IP, IP_DONTFRAG, &set, in traceroute_main()
587 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_MULTICAST_IF, in traceroute_main()
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-igmp_querier.c371 if (setsockopt(sd, IPPROTO_IP, IP_OPTIONS, opt, sizeof(opt))) in create_socket()
378 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_IF, in create_socket()
/third_party/boost/boost/asio/detail/
Dsocket_types.hpp218 # define BOOST_ASIO_OS_DEF_IPPROTO_IP IPPROTO_IP
334 # define BOOST_ASIO_OS_DEF_IPPROTO_IP IPPROTO_IP
/third_party/ffmpeg/libavformat/
Dudp.c166 if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, &mcastTTL, sizeof(mcastTTL)) < 0) { in udp_set_multicast_ttl()
194 … if (setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (const void *)&mreq, sizeof(mreq)) < 0) { in udp_join_multicast_group()
227 … if (setsockopt(sockfd, IPPROTO_IP, IP_DROP_MEMBERSHIP, (const void *)&mreq, sizeof(mreq)) < 0) { in udp_leave_multicast_group()
264 int level = addr->sa_family == AF_INET ? IPPROTO_IP : IPPROTO_IPV6; in udp_set_multicast_sources()
303 if (setsockopt(sockfd, IPPROTO_IP, in udp_set_multicast_sources()
794 if (setsockopt (udp_fd, IPPROTO_IP, IP_TOS, &dscp, sizeof(dscp)) != 0) in udp_open()
/third_party/gstreamer/gstplugins_good/gst/udp/
Dgstudpsrc.c180 return IPPROTO_IP; in gst_ip_pktinfo_message_get_level()
196 if (level != IPPROTO_IP || type != IP_PKTINFO) in gst_ip_pktinfo_message_deserialize()
362 return IPPROTO_IP; in gst_ip_recvdstaddr_message_get_level()
378 if (level != IPPROTO_IP || type != IP_RECVDSTADDR) in gst_ip_recvdstaddr_message_deserialize()
1496 if (!g_socket_set_option (src->used_socket, IPPROTO_IP, IP_MULTICAST_ALL,
1503 if (!g_socket_set_option (src->used_socket, IPPROTO_IP, IP_PKTINFO, TRUE,
1510 if (!g_socket_set_option (src->used_socket, IPPROTO_IP, IP_RECVDSTADDR,
/third_party/musl/libc-test/src/api/
Dnetinet_in.c44 C(IPPROTO_IP) in f()
/third_party/libuv/src/win/
Dwinsock.c105 dummy = socket(AF_INET, SOCK_STREAM, IPPROTO_IP); in uv__winsock_init()
121 dummy = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in uv__winsock_init()
/third_party/openssl/include/internal/
Dsockets.h36 # if !defined(IPPROTO_IP)

123