/third_party/libuv/src/win/ |
D | udp.c | 595 struct ip_mreq mreq; in uv__udp_set_membership4() local 608 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership4() 611 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4() 615 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_membership4() 618 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_membership4() 634 (char*) &mreq, in uv__udp_set_membership4() 635 sizeof mreq) == SOCKET_ERROR) { in uv__udp_set_membership4() 649 struct ipv6_mreq mreq; in uv__udp_set_membership6() local 663 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_membership6() 668 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | iapp.c | 383 struct ip_mreqn mreq; in iapp_init() local 467 os_memset(&mreq, 0, sizeof(mreq)); in iapp_init() 468 mreq.imr_multiaddr = iapp->multicast; in iapp_init() 469 mreq.imr_address.s_addr = INADDR_ANY; in iapp_init() 470 mreq.imr_ifindex = 0; in iapp_init() 471 if (setsockopt(iapp->udp_sock, SOL_IP, IP_ADD_MEMBERSHIP, &mreq, in iapp_init() 472 sizeof(mreq)) < 0) { in iapp_init() 518 struct ip_mreqn mreq; in iapp_deinit() local 524 os_memset(&mreq, 0, sizeof(mreq)); in iapp_deinit() 525 mreq.imr_multiaddr = iapp->multicast; in iapp_deinit() [all …]
|
/third_party/libuv/src/unix/ |
D | udp.c | 837 struct ip_mreq mreq; in uv__udp_set_membership4() local 841 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership4() 844 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4() 848 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_membership4() 851 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_membership4() 867 &mreq, in uv__udp_set_membership4() 868 sizeof(mreq))) { in uv__udp_set_membership4() 885 struct ipv6_mreq mreq; in uv__udp_set_membership6() local 888 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership6() 893 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_wired_common.c | 143 struct packet_mreq mreq; in wired_multicast_membership() local 148 os_memset(&mreq, 0, sizeof(mreq)); in wired_multicast_membership() 149 mreq.mr_ifindex = ifindex; in wired_multicast_membership() 150 mreq.mr_type = PACKET_MR_MULTICAST; in wired_multicast_membership() 151 mreq.mr_alen = ETH_ALEN; in wired_multicast_membership() 152 os_memcpy(mreq.mr_address, addr, ETH_ALEN); in wired_multicast_membership() 156 &mreq, sizeof(mreq)) < 0) { in wired_multicast_membership()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_wired_common.c | 143 struct packet_mreq mreq; in wired_multicast_membership() local 148 os_memset(&mreq, 0, sizeof(mreq)); in wired_multicast_membership() 149 mreq.mr_ifindex = ifindex; in wired_multicast_membership() 150 mreq.mr_type = PACKET_MR_MULTICAST; in wired_multicast_membership() 151 mreq.mr_alen = ETH_ALEN; in wired_multicast_membership() 152 os_memcpy(mreq.mr_address, addr, ETH_ALEN); in wired_multicast_membership() 156 &mreq, sizeof(mreq)) < 0) { in wired_multicast_membership()
|
/third_party/python/Tools/demo/ |
D | mcast.py | 68 mreq = group_bin + struct.pack('=I', socket.INADDR_ANY) 69 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) 71 mreq = group_bin + struct.pack('@I', 0) 72 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq)
|
/third_party/gstreamer/gstplugins_bad/ext/avtp/ |
D | gstavtpsrc.c | 203 struct packet_mreq mreq = { 0 }; in gst_avtp_src_start() local 236 mreq.mr_ifindex = index; in gst_avtp_src_start() 237 mreq.mr_type = PACKET_MR_MULTICAST; in gst_avtp_src_start() 238 mreq.mr_alen = ETH_ALEN; in gst_avtp_src_start() 239 memcpy (&mreq.mr_address, addr, ETH_ALEN); in gst_avtp_src_start() 240 res = setsockopt (fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, &mreq, in gst_avtp_src_start()
|
D | gstavtpcrfbase.c | 179 struct packet_mreq mreq = { 0 }; in setup_socket() local 218 mreq.mr_ifindex = ifindex; in setup_socket() 219 mreq.mr_type = PACKET_MR_MULTICAST; in setup_socket() 220 mreq.mr_alen = ETH_ALEN; in setup_socket() 221 memcpy (&mreq.mr_address, addr, ETH_ALEN); in setup_socket() 222 res = setsockopt (fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, &mreq, in setup_socket()
|
/third_party/skia/third_party/externals/swiftshader/src/WSI/ |
D | DisplaySurfaceKHR.cpp | 173 struct drm_mode_map_dumb mreq; in DisplaySurfaceKHR() local 174 memset(&mreq, 0, sizeof(struct drm_mode_map_dumb)); in DisplaySurfaceKHR() 175 mreq.handle = handle; in DisplaySurfaceKHR() 176 drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &mreq); in DisplaySurfaceKHR() 178 fb_buffer = static_cast<uint8_t *>(mmap(NULL, size, PROT_WRITE, MAP_SHARED, fd, mreq.offset)); in DisplaySurfaceKHR()
|
/third_party/ffmpeg/libavformat/ |
D | udp.c | 187 struct ip_mreq mreq; in udp_join_multicast_group() local 189 mreq.imr_multiaddr.s_addr = ((struct sockaddr_in *)addr)->sin_addr.s_addr; in udp_join_multicast_group() 191 mreq.imr_interface= ((struct sockaddr_in *)local_addr)->sin_addr; in udp_join_multicast_group() 193 mreq.imr_interface.s_addr = INADDR_ANY; in udp_join_multicast_group() 194 … if (setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (const void *)&mreq, sizeof(mreq)) < 0) { in udp_join_multicast_group() 220 struct ip_mreq mreq; in udp_leave_multicast_group() local 222 mreq.imr_multiaddr.s_addr = ((struct sockaddr_in *)addr)->sin_addr.s_addr; in udp_leave_multicast_group() 224 mreq.imr_interface = ((struct sockaddr_in *)local_addr)->sin_addr; in udp_leave_multicast_group() 226 mreq.imr_interface.s_addr = INADDR_ANY; in udp_leave_multicast_group() 227 … if (setsockopt(sockfd, IPPROTO_IP, IP_DROP_MEMBERSHIP, (const void *)&mreq, sizeof(mreq)) < 0) { in udp_leave_multicast_group()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_upnp_ssdp.c | 903 struct ip_mreq mreq; in ssdp_open_multicast_sock() 904 mreq.imr_multiaddr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in ssdp_open_multicast_sock() 905 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock() 908 mreq.imr_multiaddr.s_addr, in ssdp_open_multicast_sock() 909 mreq.imr_interface.s_addr); in ssdp_open_multicast_sock() 910 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in ssdp_open_multicast_sock() 911 sizeof(mreq))) { in ssdp_open_multicast_sock()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_upnp_ssdp.c | 903 struct ip_mreq mreq; in ssdp_open_multicast_sock() 904 mreq.imr_multiaddr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in ssdp_open_multicast_sock() 905 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock() 908 mreq.imr_multiaddr.s_addr, in ssdp_open_multicast_sock() 909 mreq.imr_interface.s_addr); in ssdp_open_multicast_sock() 910 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in ssdp_open_multicast_sock() 911 sizeof(mreq))) { in ssdp_open_multicast_sock()
|
/third_party/toybox/toys/pending/ |
D | dhcpd.c | 776 struct ipv6_mreq mreq; in open_listensock6() local 807 memset(&mreq, 0, sizeof(mreq)); in open_listensock6() 808 mreq.ipv6mr_interface = if_nametoindex(gconfig.interface); in open_listensock6() 809 memcpy(&mreq.ipv6mr_multiaddr, &addr6.sin6_addr, sizeof(addr6.sin6_addr)); in open_listensock6() 811 if(setsockopt(gstate.listensock, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, sizeof(mreq)) == -1) { in open_listensock6()
|
/third_party/NuttX/ |
D | ReleaseNotes | 20029 struct ipv6-mreq. These changes all follow the opengroup standard for
|