Lines Matching refs:mreq

556   struct ip_mreq mreq;  in uv__udp_set_membership4()  local
569 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership4()
572 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4()
576 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_membership4()
579 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_membership4()
595 (char*) &mreq, in uv__udp_set_membership4()
596 sizeof mreq) == SOCKET_ERROR) { in uv__udp_set_membership4()
610 struct ipv6_mreq mreq; in uv__udp_set_membership6() local
624 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_membership6()
629 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6()
631 mreq.ipv6mr_interface = 0; in uv__udp_set_membership6()
634 mreq.ipv6mr_multiaddr = multicast_addr->sin6_addr; in uv__udp_set_membership6()
650 (char*) &mreq, in uv__udp_set_membership6()
651 sizeof mreq) == SOCKET_ERROR) { in uv__udp_set_membership6()
664 struct ip_mreq_source mreq; in uv__udp_set_source_membership4() local
679 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_source_membership4()
682 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_source_membership4()
686 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_source_membership4()
689 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_source_membership4()
690 mreq.imr_sourceaddr.s_addr = source_addr->sin_addr.s_addr; in uv__udp_set_source_membership4()
702 (char*) &mreq, in uv__udp_set_source_membership4()
703 sizeof(mreq)) == SOCKET_ERROR) { in uv__udp_set_source_membership4()
716 struct group_source_req mreq; in uv__udp_set_source_membership6() local
721 STATIC_ASSERT(sizeof(mreq.gsr_group) >= sizeof(*multicast_addr)); in uv__udp_set_source_membership6()
722 STATIC_ASSERT(sizeof(mreq.gsr_source) >= sizeof(*source_addr)); in uv__udp_set_source_membership6()
735 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_source_membership6()
741 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6()
743 mreq.gsr_interface = 0; in uv__udp_set_source_membership6()
746 memcpy(&mreq.gsr_group, multicast_addr, sizeof(*multicast_addr)); in uv__udp_set_source_membership6()
747 memcpy(&mreq.gsr_source, source_addr, sizeof(*source_addr)); in uv__udp_set_source_membership6()
759 (char*) &mreq, in uv__udp_set_source_membership6()
760 sizeof(mreq)) == SOCKET_ERROR) { in uv__udp_set_source_membership6()