/prebuilts/go/darwin-x86/src/net/ |
sockoptip_posix.go | 15 mreq := &syscall.IPMreq{Multiaddr: [4]byte{ip[0], ip[1], ip[2], ip[3]}} 16 if err := setIPv4MreqToInterface(mreq, ifi); err != nil { 23 return os.NewSyscallError("setsockopt", syscall.SetsockoptIPMreq(fd.sysfd, syscall.IPPROTO_IP, syscall.IP_ADD_MEMBERSHIP, mreq)) 47 mreq := &syscall.IPv6Mreq{} 48 copy(mreq.Multiaddr[:], ip) 50 mreq.Interface = uint32(ifi.Index) 56 return os.NewSyscallError("setsockopt", syscall.SetsockoptIPv6Mreq(fd.sysfd, syscall.IPPROTO_IPV6, syscall.IPV6_JOIN_GROUP, mreq))
|
sockoptip_linux.go | 17 mreq := &syscall.IPMreqn{Ifindex: v} 22 return os.NewSyscallError("setsockopt", syscall.SetsockoptIPMreqn(fd.sysfd, syscall.IPPROTO_IP, syscall.IP_MULTICAST_IF, mreq))
|
sockopt_posix.go | 74 func setIPv4MreqToInterface(mreq *syscall.IPMreq, ifi *Interface) error { 86 copy(mreq.Interface[:], a) 91 copy(mreq.Interface[:], a) 97 if bytesEqual(mreq.Multiaddr[:], IPv4zero.To4()) {
|
/prebuilts/go/linux-x86/src/net/ |
sockoptip_posix.go | 15 mreq := &syscall.IPMreq{Multiaddr: [4]byte{ip[0], ip[1], ip[2], ip[3]}} 16 if err := setIPv4MreqToInterface(mreq, ifi); err != nil { 23 return os.NewSyscallError("setsockopt", syscall.SetsockoptIPMreq(fd.sysfd, syscall.IPPROTO_IP, syscall.IP_ADD_MEMBERSHIP, mreq)) 47 mreq := &syscall.IPv6Mreq{} 48 copy(mreq.Multiaddr[:], ip) 50 mreq.Interface = uint32(ifi.Index) 56 return os.NewSyscallError("setsockopt", syscall.SetsockoptIPv6Mreq(fd.sysfd, syscall.IPPROTO_IPV6, syscall.IPV6_JOIN_GROUP, mreq))
|
sockoptip_linux.go | 17 mreq := &syscall.IPMreqn{Ifindex: v} 22 return os.NewSyscallError("setsockopt", syscall.SetsockoptIPMreqn(fd.sysfd, syscall.IPPROTO_IP, syscall.IP_MULTICAST_IF, mreq))
|
sockopt_posix.go | 74 func setIPv4MreqToInterface(mreq *syscall.IPMreq, ifi *Interface) error { 86 copy(mreq.Interface[:], a) 91 copy(mreq.Interface[:], a) 97 if bytesEqual(mreq.Multiaddr[:], IPv4zero.To4()) {
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
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/cpython2/Demo/sockets/ |
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/wpa_supplicant_8/src/ap/ |
iapp.c | 383 struct ip_mreqn mreq; local 467 os_memset(&mreq, 0, sizeof(mreq)); 468 mreq.imr_multiaddr = iapp->multicast; 469 mreq.imr_address.s_addr = INADDR_ANY; 470 mreq.imr_ifindex = 0; 471 if (setsockopt(iapp->udp_sock, SOL_IP, IP_ADD_MEMBERSHIP, &mreq, 472 sizeof(mreq)) < 0) { 518 struct ip_mreqn mreq; local 524 os_memset(&mreq, 0, sizeof(mreq)) [all...] |
/external/wpa_supplicant_8/src/drivers/ |
driver_wired_common.c | 143 struct packet_mreq mreq; local 148 os_memset(&mreq, 0, sizeof(mreq)); 149 mreq.mr_ifindex = ifindex; 150 mreq.mr_type = PACKET_MR_MULTICAST; 151 mreq.mr_alen = ETH_ALEN; 152 os_memcpy(mreq.mr_address, addr, ETH_ALEN); 156 &mreq, sizeof(mreq)) < 0) {
|
/external/strace/ |
net.c | 642 struct ip_mreq mreq; local 644 if (len < sizeof(mreq)) { 648 if (umove_or_printaddr(tcp, addr, &mreq)) 652 inet_ntoa(mreq.imr_multiaddr)); 654 inet_ntoa(mreq.imr_interface)); 663 struct ipv6_mreq mreq; local 665 if (len < sizeof(mreq)) { 669 if (umove_or_printaddr(tcp, addr, &mreq)) 673 print_inet_addr(AF_INET6, &mreq.ipv6mr_multiaddr, 674 sizeof(mreq.ipv6mr_multiaddr), "ipv6mr_multiaddr") 727 struct packet_mreq mreq; local [all...] |
mtd.c | 136 struct mtd_write_req mreq; local 139 if (umove_or_printaddr(tcp, addr, &mreq)) 145 (uint64_t) mreq.start, (uint64_t) mreq.len, 146 (uint64_t) mreq.ooblen, (uint64_t) mreq.usr_data, 147 (uint64_t) mreq.usr_oob); 148 printxval(mtd_mode_options, mreq.mode, "MTD_OPS_???");
|
/external/android-clat/ |
setif.c | 135 struct ipv6_mreq mreq = { *addr, ifindex }; local 147 ret = setsockopt(sock, SOL_IPV6, what, &mreq, sizeof(mreq));
|
/external/iputils/ |
rdisc.c | 1059 struct ip_mreqn mreq; local 1061 memset(&mreq, 0, sizeof(mreq)); 1062 mreq.imr_ifindex = ifp->ifindex; 1063 mreq.imr_address = ifp->localaddr; 1067 pr_name(mreq.imr_address)); 1069 (char *)&mreq, 1070 sizeof(mreq)) < 0) { 1074 pr_name(mreq.imr_address)); 1082 ifp->name, pr_name(mreq.imr_address)) 1231 struct ip_mreqn mreq; local [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-mips32-linux.c | 281 MapRequest mreq; local 307 mreq.start = arg1; 308 mreq.len = arg2; 310 mreq.rkind = MFixed; 313 mreq.rkind = MHint; 315 mreq.rkind = MAny; 320 mreq.len = arg2 + VKI_SHMLBA - VKI_PAGE_SIZE; 323 advised = VG_(am_get_advisory)( &mreq, True/*client*/, &mreq_ok ); 344 if (mreq.rkind == MHint && sr_isError(sres)) { 345 mreq.start = 0 [all...] |
syswrap-generic.c | 2225 MapRequest mreq; local [all...] |
/external/valgrind/coregrind/m_ume/ |
elf.c | 784 MapRequest mreq; local 805 mreq.rkind = MAny; 806 mreq.start = 0; 807 mreq.len = interp_size; 809 mreq.rkind = MHint; 810 mreq.start = interp_addr; 811 mreq.len = interp_size; 814 advised = VG_(am_get_advisory)( &mreq, True/*client*/, &ok );
|
/external/wpa_supplicant_8/src/wps/ |
wps_upnp_ssdp.c | 903 struct ip_mreq mreq; 904 mreq.imr_multiaddr.s_addr = inet_addr(UPNP_MULTICAST_ADDRESS); 905 mreq.imr_interface.s_addr = ip_addr; 908 mreq.imr_multiaddr.s_addr, 909 mreq.imr_interface.s_addr); 910 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, 911 sizeof(mreq))) {
|
/prebuilts/go/darwin-x86/src/syscall/ |
syscall_unix.go | 282 func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) { 283 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq) 286 func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) { 287 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq)
|
syscall_freebsd.go | 86 func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { 87 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
/prebuilts/go/linux-x86/src/syscall/ |
syscall_unix.go | 282 func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) { 283 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq) 286 func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) { 287 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq)
|
syscall_freebsd.go | 86 func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { 87 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
/frameworks/base/libs/common_time/ |
common_time_server.cpp | 480 struct ip_mreq mreq; local 481 mreq.imr_multiaddr = ipv4_addr->sin_addr; 482 mreq.imr_interface.s_addr = htonl(INADDR_ANY); 484 &mreq, sizeof(mreq)); [all...] |
/libcore/ojluni/src/main/native/ |
Net.c | 540 struct ip_mreq mreq; local 546 mreq.imr_multiaddr.s_addr = htonl(group); 547 mreq.imr_interface.s_addr = htonl(interf); 549 optval = (void*)&mreq; 550 optlen = sizeof(mreq);
|
/external/webrtc/webrtc/test/channel_transport/ |
udp_transport_impl.cc | 1386 struct ip_mreq mreq; local 1458 struct ip_mreq mreq; local [all...] |