/external/wpa_supplicant_8/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 …]
|
/external/strace/ |
D | net.c | 903 struct ip_mreq mreq; in print_mreq() local 905 if (len < (int) sizeof(mreq)) { in print_mreq() 907 } else if (!umove_or_printaddr(tcp, addr, &mreq)) { in print_mreq() 908 PRINT_FIELD_INET4_ADDR("{", mreq, imr_multiaddr); in print_mreq() 909 PRINT_FIELD_INET4_ADDR(", ", mreq, imr_interface); in print_mreq() 920 struct ipv6_mreq mreq; in print_mreq6() local 922 if (len < (int) sizeof(mreq)) { in print_mreq6() 924 } else if (!umove_or_printaddr(tcp, addr, &mreq)) { in print_mreq6() 925 PRINT_FIELD_INET_ADDR("{", mreq, ipv6mr_multiaddr, AF_INET6); in print_mreq6() 926 PRINT_FIELD_IFINDEX(", ", mreq, ipv6mr_interface); in print_mreq6() [all …]
|
D | mtd.c | 135 struct mtd_write_req mreq; in decode_mtd_write_req() local 138 if (umove_or_printaddr(tcp, addr, &mreq)) in decode_mtd_write_req() 144 (uint64_t) mreq.start, (uint64_t) mreq.len, in decode_mtd_write_req() 145 (uint64_t) mreq.ooblen, (uint64_t) mreq.usr_data, in decode_mtd_write_req() 146 (uint64_t) mreq.usr_oob); in decode_mtd_write_req() 147 printxval(mtd_mode_options, mreq.mode, "MTD_OPS_???"); in decode_mtd_write_req()
|
D | ChangeLog | 24022 if (mreq.mr_alen > ARRAY_SIZE(mreq.mr_address))
|
/external/wpa_supplicant_8/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()
|
/external/python/cpython2/Demo/sockets/ |
D | mcast.py | 66 mreq = group_bin + struct.pack('=I', socket.INADDR_ANY) 67 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) 69 mreq = group_bin + struct.pack('@I', 0) 70 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq)
|
/external/python/cpython3/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)
|
/external/libkmsxx/kms++/src/ |
D | dumbframebuffer.cpp | 110 struct drm_mode_map_dumb mreq = drm_mode_map_dumb(); in map() local 111 mreq.handle = p.handle; in map() 112 int r = drmIoctl(card().fd(), DRM_IOCTL_MODE_MAP_DUMB, &mreq); in map() 118 card().fd(), mreq.offset); in map()
|
/external/iputils/ |
D | rdisc.c | 1059 struct ip_mreqn mreq; in sendmcastif() local 1061 memset(&mreq, 0, sizeof(mreq)); in sendmcastif() 1062 mreq.imr_ifindex = ifp->ifindex; in sendmcastif() 1063 mreq.imr_address = ifp->localaddr; in sendmcastif() 1067 pr_name(mreq.imr_address)); in sendmcastif() 1069 (char *)&mreq, in sendmcastif() 1070 sizeof(mreq)) < 0) { in sendmcastif() 1074 pr_name(mreq.imr_address)); in sendmcastif() 1082 ifp->name, pr_name(mreq.imr_address)); in sendmcastif() 1231 struct ip_mreqn mreq; in join() local [all …]
|
/external/android-clat/ |
D | setif.c | 139 struct ipv6_mreq mreq = { *addr, ifindex }; in do_anycast_setsockopt() local 151 ret = setsockopt(sock, SOL_IPV6, what, &mreq, sizeof(mreq)); in do_anycast_setsockopt()
|
/external/wpa_supplicant_8/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()
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
D | syscall_unix.go | 320 func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) { 321 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq) 324 func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) { 325 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq)
|
D | syscall_freebsd.go | 78 func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { 79 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
D | syscall_linux.go | 816 func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { 817 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
/external/webrtc/webrtc/test/channel_transport/ |
D | udp_transport_impl.cc | 1386 struct ip_mreq mreq; in BindLocalRTPSocket() local 1387 mreq.imr_multiaddr.s_addr = InetAddrIPV4(_localMulticastIP); in BindLocalRTPSocket() 1388 mreq.imr_interface.s_addr = INADDR_ANY; in BindLocalRTPSocket() 1391 (int8_t*)&mreq,sizeof (mreq))) in BindLocalRTPSocket() 1458 struct ip_mreq mreq; in BindLocalRTCPSocket() local 1459 mreq.imr_multiaddr.s_addr = InetAddrIPV4(_localMulticastIP); in BindLocalRTCPSocket() 1460 mreq.imr_interface.s_addr = INADDR_ANY; in BindLocalRTCPSocket() 1463 (int8_t*)&mreq,sizeof (mreq))) in BindLocalRTCPSocket()
|
/external/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()
|
/external/scapy/scapy/arch/ |
D | linux.py | 168 mreq = struct.pack("IHH8s", get_if_index(iff), PACKET_MR_PROMISC, 0, b"") 173 s.setsockopt(SOL_PACKET, cmd, mreq)
|