Searched refs:mcastaddr (Results 1 – 2 of 2) sorted by relevance
1595 static int net_socket_mcast_create(struct sockaddr_in *mcastaddr) in net_socket_mcast_create() argument1600 if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) { in net_socket_mcast_create()1602 inet_ntoa(mcastaddr->sin_addr), in net_socket_mcast_create()1603 (int)ntohl(mcastaddr->sin_addr.s_addr)); in net_socket_mcast_create()1621 ret = bind(fd, (struct sockaddr *)mcastaddr, sizeof(*mcastaddr)); in net_socket_mcast_create()1628 imr.imr_multiaddr = mcastaddr->sin_addr; in net_socket_mcast_create()
1697 static int net_socket_mcast_create(SockAddress *mcastaddr) in net_socket_mcast_create() argument1701 if (!IN_MULTICAST(sock_address_get_ip(mcastaddr))) { in net_socket_mcast_create()1703 sock_address_to_string(mcastaddr), in net_socket_mcast_create()1704 sock_address_get_ip(mcastaddr)); in net_socket_mcast_create()1720 ret = socket_bind(fd, mcastaddr); in net_socket_mcast_create()1727 ret = socket_mcast_inet_add_membership(fd, sock_address_get_ip(mcastaddr)); in net_socket_mcast_create()