Lines Matching refs:mreq
662 struct ip_mreq mreq; in uv__udp_set_membership4() local
666 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership4()
669 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4()
673 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_membership4()
676 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_membership4()
692 &mreq, in uv__udp_set_membership4()
693 sizeof(mreq))) { in uv__udp_set_membership4()
710 struct ipv6_mreq mreq; in uv__udp_set_membership6() local
713 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership6()
718 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6()
720 mreq.ipv6mr_interface = 0; in uv__udp_set_membership6()
723 mreq.ipv6mr_multiaddr = multicast_addr->sin6_addr; in uv__udp_set_membership6()
739 &mreq, in uv__udp_set_membership6()
740 sizeof(mreq))) { in uv__udp_set_membership6()
763 struct ip_mreq_source mreq; in uv__udp_set_source_membership4() local
771 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_source_membership4()
774 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_source_membership4()
778 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_source_membership4()
781 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_source_membership4()
782 mreq.imr_sourceaddr.s_addr = source_addr->sin_addr.s_addr; in uv__udp_set_source_membership4()
794 &mreq, in uv__udp_set_source_membership4()
795 sizeof(mreq))) { in uv__udp_set_source_membership4()
808 struct group_source_req mreq; in uv__udp_set_source_membership6() local
817 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_source_membership6()
823 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6()
825 mreq.gsr_interface = 0; in uv__udp_set_source_membership6()
828 STATIC_ASSERT(sizeof(mreq.gsr_group) >= sizeof(*multicast_addr)); in uv__udp_set_source_membership6()
829 STATIC_ASSERT(sizeof(mreq.gsr_source) >= sizeof(*source_addr)); in uv__udp_set_source_membership6()
830 memcpy(&mreq.gsr_group, multicast_addr, sizeof(*multicast_addr)); in uv__udp_set_source_membership6()
831 memcpy(&mreq.gsr_source, source_addr, sizeof(*source_addr)); in uv__udp_set_source_membership6()
843 &mreq, in uv__udp_set_source_membership6()
844 sizeof(mreq))) { in uv__udp_set_source_membership6()