Lines Matching refs:saddr
336 struct sockaddr_in saddr; in net_socket_fd_init_dgram() local
356 if (parse_host_port(&saddr, mcast, errp) < 0) { in net_socket_fd_init_dgram()
360 if (saddr.sin_addr.s_addr == 0) { in net_socket_fd_init_dgram()
365 newfd = net_socket_mcast_create(&saddr, NULL, errp); in net_socket_fd_init_dgram()
387 s->dgram_dst = saddr; in net_socket_fd_init_dgram()
389 inet_ntoa(saddr.sin_addr), ntohs(saddr.sin_port)); in net_socket_fd_init_dgram()
469 struct sockaddr_in saddr; in net_socket_accept() local
474 len = sizeof(saddr); in net_socket_accept()
475 fd = qemu_accept(s->listen_fd, (struct sockaddr *)&saddr, &len); in net_socket_accept()
488 inet_ntoa(saddr.sin_addr), ntohs(saddr.sin_port)); in net_socket_accept()
499 struct sockaddr_in saddr; in net_socket_listen_init() local
502 if (parse_host_port(&saddr, host_str, errp) < 0) { in net_socket_listen_init()
515 ret = bind(fd, (struct sockaddr *)&saddr, sizeof(saddr)); in net_socket_listen_init()
518 inet_ntoa(saddr.sin_addr)); in net_socket_listen_init()
548 struct sockaddr_in saddr; in net_socket_connect_init() local
550 if (parse_host_port(&saddr, host_str, errp) < 0) { in net_socket_connect_init()
563 ret = connect(fd, (struct sockaddr *)&saddr, sizeof(saddr)); in net_socket_connect_init()
586 inet_ntoa(saddr.sin_addr), ntohs(saddr.sin_port)); in net_socket_connect_init()
599 struct sockaddr_in saddr; in net_socket_mcast_init() local
602 if (parse_host_port(&saddr, host_str, errp) < 0) { in net_socket_mcast_init()
617 fd = net_socket_mcast_create(&saddr, param_localaddr, errp); in net_socket_mcast_init()
627 s->dgram_dst = saddr; in net_socket_mcast_init()
630 inet_ntoa(saddr.sin_addr), ntohs(saddr.sin_port)); in net_socket_mcast_init()