Lines Matching refs:host_addr
730 struct sockaddr_in host_addr = { in hmp_hostfwd_remove() local
772 if (buf[0] != '\0' && !inet_aton(buf, &host_addr.sin_addr)) { in hmp_hostfwd_remove()
779 host_addr.sin_port = htons(host_port); in hmp_hostfwd_remove()
782 err = slirp_remove_hostxfwd(s->slirp, (struct sockaddr *) &host_addr, in hmp_hostfwd_remove()
783 sizeof(host_addr), is_udp ? SLIRP_HOSTFWD_UDP : 0); in hmp_hostfwd_remove()
785 err = slirp_remove_hostfwd(s->slirp, is_udp, host_addr.sin_addr, host_port); in hmp_hostfwd_remove()
798 struct sockaddr_in host_addr = { in slirp_hostfwd() local
836 if (buf[0] != '\0' && !inet_aton(buf, &host_addr.sin_addr)) { in slirp_hostfwd()
850 host_addr.sin_port = htons(host_port); in slirp_hostfwd()
870 (struct sockaddr *) &host_addr, sizeof(host_addr), in slirp_hostfwd()
875 host_addr.sin_addr, host_port, in slirp_hostfwd()