Lines Matching refs:mreq
835 struct ip_mreq mreq; in uv__udp_set_membership4() local
839 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership4()
842 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4()
846 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_membership4()
849 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_membership4()
865 &mreq, in uv__udp_set_membership4()
866 sizeof(mreq))) { in uv__udp_set_membership4()
883 struct ipv6_mreq mreq; in uv__udp_set_membership6() local
886 memset(&mreq, 0, sizeof mreq); in uv__udp_set_membership6()
891 mreq.ipv6mr_interface = addr6.sin6_scope_id; in uv__udp_set_membership6()
893 mreq.ipv6mr_interface = 0; in uv__udp_set_membership6()
896 mreq.ipv6mr_multiaddr = multicast_addr->sin6_addr; in uv__udp_set_membership6()
912 &mreq, in uv__udp_set_membership6()
913 sizeof(mreq))) { in uv__udp_set_membership6()
936 struct ip_mreq_source mreq; in uv__udp_set_source_membership4() local
944 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_source_membership4()
947 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_source_membership4()
951 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in uv__udp_set_source_membership4()
954 mreq.imr_multiaddr.s_addr = multicast_addr->sin_addr.s_addr; in uv__udp_set_source_membership4()
955 mreq.imr_sourceaddr.s_addr = source_addr->sin_addr.s_addr; in uv__udp_set_source_membership4()
967 &mreq, in uv__udp_set_source_membership4()
968 sizeof(mreq))) { in uv__udp_set_source_membership4()
981 struct group_source_req mreq; in uv__udp_set_source_membership6() local
990 memset(&mreq, 0, sizeof(mreq)); in uv__udp_set_source_membership6()
996 mreq.gsr_interface = addr6.sin6_scope_id; in uv__udp_set_source_membership6()
998 mreq.gsr_interface = 0; in uv__udp_set_source_membership6()
1001 STATIC_ASSERT(sizeof(mreq.gsr_group) >= sizeof(*multicast_addr)); in uv__udp_set_source_membership6()
1002 STATIC_ASSERT(sizeof(mreq.gsr_source) >= sizeof(*source_addr)); in uv__udp_set_source_membership6()
1003 memcpy(&mreq.gsr_group, multicast_addr, sizeof(*multicast_addr)); in uv__udp_set_source_membership6()
1004 memcpy(&mreq.gsr_source, source_addr, sizeof(*source_addr)); in uv__udp_set_source_membership6()
1016 &mreq, in uv__udp_set_source_membership6()
1017 sizeof(mreq))) { in uv__udp_set_source_membership6()