Searched refs:mcastaddr (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/net/ |
H A D | dgram.c | 144 static int net_dgram_mcast_create(struct sockaddr_in *mcastaddr, in net_dgram_mcast_create() argument 157 if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) { in net_dgram_mcast_create() 160 inet_ntoa(mcastaddr->sin_addr), in net_dgram_mcast_create() 161 (int)ntohl(mcastaddr->sin_addr.s_addr)); in net_dgram_mcast_create() 184 ret = bind(fd, (struct sockaddr *)mcastaddr, sizeof(*mcastaddr)); in net_dgram_mcast_create() 187 inet_ntoa(mcastaddr->sin_addr)); in net_dgram_mcast_create() 192 imr.imr_multiaddr = mcastaddr->sin_addr; in net_dgram_mcast_create() 439 struct sockaddr_in mcastaddr; in net_init_dgram() local 441 if (convert_host_port(&mcastaddr, remote->u.inet.host, in net_init_dgram() 446 if (IN_MULTICAST(ntohl(mcastaddr.sin_addr.s_addr))) { in net_init_dgram()
|
H A D | socket.c | 213 static int net_socket_mcast_create(struct sockaddr_in *mcastaddr, in net_socket_mcast_create() argument 226 if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) { in net_socket_mcast_create() 229 inet_ntoa(mcastaddr->sin_addr), in net_socket_mcast_create() 230 (int)ntohl(mcastaddr->sin_addr.s_addr)); in net_socket_mcast_create() 253 ret = bind(fd, (struct sockaddr *)mcastaddr, sizeof(*mcastaddr)); in net_socket_mcast_create() 256 inet_ntoa(mcastaddr->sin_addr)); in net_socket_mcast_create() 261 imr.imr_multiaddr = mcastaddr->sin_addr; in net_socket_mcast_create()
|