/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 383 struct ip_mreqn mreq; in iapp_init() local 454 os_memset(&mreq, 0, sizeof(mreq)); in iapp_init() 455 mreq.imr_multiaddr = iapp->multicast; in iapp_init() 456 mreq.imr_address.s_addr = INADDR_ANY; in iapp_init() 457 mreq.imr_ifindex = 0; in iapp_init() 458 if (setsockopt(iapp->udp_sock, SOL_IP, IP_ADD_MEMBERSHIP, &mreq, in iapp_init() 459 sizeof(mreq)) < 0) { in iapp_init() 505 struct ip_mreqn mreq; in iapp_deinit() local 511 os_memset(&mreq, 0, sizeof(mreq)); in iapp_deinit() 512 mreq.imr_multiaddr = iapp->multicast; in iapp_deinit() [all …]
|
/external/srtp/test/ |
D | rtpw.c | 115 leave_group(int sock, struct ip_mreq mreq, char *name); 132 struct ip_mreq mreq; in main() local 284 mreq.imr_multiaddr.s_addr = rcvr_addr.s_addr; in main() 285 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in main() 286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq, in main() 287 sizeof(mreq)); in main() 427 leave_group(sock, mreq, argv[0]); in main() 453 leave_group(sock, mreq, argv[0]); in main() 482 leave_group(sock, mreq, argv[0]); in main() 513 leave_group(int sock, struct ip_mreq mreq, char *name) { in leave_group() argument [all …]
|
/external/strace/ |
D | net.c | 1353 struct ip_mreq mreq; in print_mreq() local 1355 if (len < sizeof(mreq)) { in print_mreq() 1359 if (umove_or_printaddr(tcp, addr, &mreq)) in print_mreq() 1363 print_quoted_string(inet_ntoa(mreq.imr_multiaddr), in print_mreq() 1366 print_quoted_string(inet_ntoa(mreq.imr_interface), in print_mreq() 1376 struct ipv6_mreq mreq; in print_mreq6() local 1378 if (len < sizeof(mreq)) in print_mreq6() 1381 if (umove_or_printaddr(tcp, addr, &mreq)) in print_mreq6() 1385 const struct in6_addr *in6 = &mreq.ipv6mr_multiaddr; in print_mreq6() 1394 print_ifindex(mreq.ipv6mr_interface); in print_mreq6() [all …]
|
D | mtd.c | 148 struct mtd_write_req mreq; in mtd_ioctl() local 151 if (umove_or_printaddr(tcp, arg, &mreq)) in mtd_ioctl() 155 (uint64_t) mreq.start, (uint64_t) mreq.len); in mtd_ioctl() 157 (uint64_t) mreq.ooblen, (uint64_t) mreq.usr_data); in mtd_ioctl() 159 (uint64_t) mreq.usr_oob); in mtd_ioctl() 160 printxval(mtd_mode_options, mreq.mode, "MTD_OPS_???"); in mtd_ioctl()
|
/external/avahi/avahi-core/ |
D | socket.c | 109 struct ip_mreqn mreq; in avahi_mdns_mcast_join_ipv4() local 111 struct ip_mreq mreq; in avahi_mdns_mcast_join_ipv4() 119 memset(&mreq, 0, sizeof(mreq)); in avahi_mdns_mcast_join_ipv4() 121 mreq.imr_ifindex = idx; in avahi_mdns_mcast_join_ipv4() 122 mreq.imr_address.s_addr = a->address; in avahi_mdns_mcast_join_ipv4() 124 mreq.imr_interface.s_addr = a->address; in avahi_mdns_mcast_join_ipv4() 127 mreq.imr_multiaddr = sa.sin_addr; in avahi_mdns_mcast_join_ipv4() 133 setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); in avahi_mdns_mcast_join_ipv4() 135 …tsockopt(fd, IPPROTO_IP, join ? IP_ADD_MEMBERSHIP : IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) { in avahi_mdns_mcast_join_ipv4()
|
/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/wpa_supplicant_8/src/drivers/ |
D | driver_wired.c | 90 struct packet_mreq mreq; in wired_multicast_membership() local 95 os_memset(&mreq, 0, sizeof(mreq)); in wired_multicast_membership() 96 mreq.mr_ifindex = ifindex; in wired_multicast_membership() 97 mreq.mr_type = PACKET_MR_MULTICAST; in wired_multicast_membership() 98 mreq.mr_alen = ETH_ALEN; in wired_multicast_membership() 99 os_memcpy(mreq.mr_address, addr, ETH_ALEN); in wired_multicast_membership() 103 &mreq, sizeof(mreq)) < 0) { in wired_multicast_membership()
|
D | driver_macsec_qca.c | 80 struct packet_mreq mreq; in macsec_qca_multicast_membership() local 85 os_memset(&mreq, 0, sizeof(mreq)); in macsec_qca_multicast_membership() 86 mreq.mr_ifindex = ifindex; in macsec_qca_multicast_membership() 87 mreq.mr_type = PACKET_MR_MULTICAST; in macsec_qca_multicast_membership() 88 mreq.mr_alen = ETH_ALEN; in macsec_qca_multicast_membership() 89 os_memcpy(mreq.mr_address, addr, ETH_ALEN); in macsec_qca_multicast_membership() 93 &mreq, sizeof(mreq)) < 0) { in macsec_qca_multicast_membership()
|
/external/valgrind/coregrind/m_ume/ |
D | elf.c | 512 MapRequest mreq; in VG_() local 533 mreq.rkind = MAny; in VG_() 534 mreq.start = 0; in VG_() 535 mreq.len = interp_size; in VG_() 537 mreq.rkind = MHint; in VG_() 538 mreq.start = interp_addr; in VG_() 539 mreq.len = interp_size; in VG_() 542 advised = VG_(am_get_advisory)( &mreq, True/*client*/, &ok ); in VG_()
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-mips32-linux.c | 397 MapRequest mreq; in mips_PRE_sys_mmap() local 423 mreq.start = arg1; in mips_PRE_sys_mmap() 424 mreq.len = arg2; in mips_PRE_sys_mmap() 426 mreq.rkind = MFixed; in mips_PRE_sys_mmap() 429 mreq.rkind = MHint; in mips_PRE_sys_mmap() 431 mreq.rkind = MAny; in mips_PRE_sys_mmap() 436 mreq.len = arg2 + VKI_SHMLBA - VKI_PAGE_SIZE; in mips_PRE_sys_mmap() 439 advised = VG_(am_get_advisory)( &mreq, True/*client*/, &mreq_ok ); in mips_PRE_sys_mmap() 460 if (mreq.rkind == MHint && sr_isError(sres)) { in mips_PRE_sys_mmap() 461 mreq.start = 0; in mips_PRE_sys_mmap() [all …]
|
D | syswrap-generic.c | 2204 MapRequest mreq; in ML_() local 2240 mreq.start = arg1; in ML_() 2241 mreq.len = arg2; in ML_() 2243 mreq.rkind = MFixed; in ML_() 2247 mreq.rkind = MAlign; in ML_() 2248 if (mreq.start == 0) { in ML_() 2249 mreq.start = VKI_PAGE_SIZE; in ML_() 2256 mreq.rkind = MHint; in ML_() 2258 mreq.rkind = MAny; in ML_() 2262 advised = VG_(am_get_advisory)( &mreq, True/*client*/, &mreq_ok ); in ML_() [all …]
|
D | syswrap-solaris.c | 5729 MapRequest mreq = {MAlign, max_align, span}; in mmapobj_process_phdrs() local 5731 start_addr = VG_(am_get_advisory)(&mreq, True /* forClient */, &ok); in mmapobj_process_phdrs()
|
/external/android-clat/ |
D | setif.c | 135 struct ipv6_mreq mreq = { *addr, ifindex }; in do_anycast_setsockopt() local 147 ret = setsockopt(sock, SOL_IPV6, what, &mreq, sizeof(mreq)); in do_anycast_setsockopt()
|
/external/autotest/client/tests/kvm/scripts/ |
D | multicast_guest.py | 27 mreq = struct.pack("4sl", socket.inet_aton(mcast), variable 29 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_upnp_ssdp.c | 909 struct ip_mreq mreq; in ssdp_open_multicast_sock() 910 mreq.imr_multiaddr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); in ssdp_open_multicast_sock() 911 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock() 914 mreq.imr_multiaddr.s_addr, in ssdp_open_multicast_sock() 915 mreq.imr_interface.s_addr); in ssdp_open_multicast_sock() 916 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in ssdp_open_multicast_sock() 917 sizeof(mreq))) { in ssdp_open_multicast_sock()
|
/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/avahi/ |
D | configure.ac | 228 struct ip_mreqn mreq; 229 mreq.imr_address.s_addr = 0; 239 struct ip_mreq mreq; 240 mreq.imr_interface.s_addr = 0;
|
/external/valgrind/coregrind/m_aspacemgr/ |
D | aspacemgr-linux.c | 2099 MapRequest mreq; in VG_() local 2100 mreq.rkind = start==0 ? MAny : MFixed; in VG_() 2101 mreq.start = start; in VG_() 2102 mreq.len = len; in VG_() 2103 return VG_(am_get_advisory)( &mreq, True/*forClient*/, ok ); in VG_()
|
/external/netperf/src/ |
D | nettest_omni.c | 819 struct ip_mreq mreq; in join_multicast_addr() local 824 mreq.imr_multiaddr.s_addr=bar.s_addr; in join_multicast_addr() 825 mreq.imr_interface.s_addr=htonl(INADDR_ANY); in join_multicast_addr() 829 (const char *)&mreq, in join_multicast_addr() 830 sizeof(mreq)) == 0) { in join_multicast_addr()
|