Lines Matching refs:sin
556 struct sockaddr_in sin, sin_out; in evutil_check_interfaces() local
570 memset(&sin, 0, sizeof(sin)); in evutil_check_interfaces()
571 sin.sin_family = AF_INET; in evutil_check_interfaces()
572 sin.sin_port = htons(53); in evutil_check_interfaces()
573 r = evutil_inet_pton(AF_INET, "18.244.0.188", &sin.sin_addr); in evutil_check_interfaces()
587 connect(fd, (struct sockaddr*)&sin, sizeof(sin)) == 0 && in evutil_check_interfaces()
858 struct sockaddr_in sin; in evutil_getaddrinfo_common() local
859 memset(&sin, 0, sizeof(sin)); in evutil_getaddrinfo_common()
860 sin.sin_family = AF_INET; in evutil_getaddrinfo_common()
861 sin.sin_port = htons(port); in evutil_getaddrinfo_common()
866 sin.sin_addr.s_addr = htonl(0x7f000001); in evutil_getaddrinfo_common()
868 res4 = evutil_new_addrinfo((struct sockaddr*)&sin, in evutil_getaddrinfo_common()
869 sizeof(sin), hints); in evutil_getaddrinfo_common()
900 struct sockaddr_in sin; in evutil_getaddrinfo_common() local
901 memset(&sin, 0, sizeof(sin)); in evutil_getaddrinfo_common()
902 if (1==evutil_inet_pton(AF_INET, nodename, &sin.sin_addr)) { in evutil_getaddrinfo_common()
904 sin.sin_family = AF_INET; in evutil_getaddrinfo_common()
905 sin.sin_port = htons(port); in evutil_getaddrinfo_common()
906 *res = evutil_new_addrinfo((struct sockaddr*)&sin, in evutil_getaddrinfo_common()
907 sizeof(sin), hints); in evutil_getaddrinfo_common()
990 struct sockaddr_in sin; in addrinfo_from_hostent() local
998 memset(&sin, 0, sizeof(sin)); in addrinfo_from_hostent()
999 sin.sin_family = AF_INET; in addrinfo_from_hostent()
1000 sin.sin_port = htons(port); in addrinfo_from_hostent()
1001 sa = (struct sockaddr *)&sin; in addrinfo_from_hostent()
1003 addrp = &sin.sin_addr; in addrinfo_from_hostent()
1004 if (ent->h_length != sizeof(sin.sin_addr)) { in addrinfo_from_hostent()
1146 struct sockaddr_in *sin = (struct sockaddr_in*)sa; in apply_numeric_port_hack() local
1147 sin->sin_port = htons(port); in apply_numeric_port_hack()
1879 struct sockaddr_in sin; in evutil_parse_sockaddr_port() local
1880 memset(&sin, 0, sizeof(sin)); in evutil_parse_sockaddr_port()
1882 sin.sin_len = sizeof(sin); in evutil_parse_sockaddr_port()
1884 sin.sin_family = AF_INET; in evutil_parse_sockaddr_port()
1885 sin.sin_port = htons(port); in evutil_parse_sockaddr_port()
1886 if (1 != evutil_inet_pton(AF_INET, addr_part, &sin.sin_addr)) in evutil_parse_sockaddr_port()
1888 if ((int)sizeof(sin) > *outlen) in evutil_parse_sockaddr_port()
1891 memcpy(out, &sin, sizeof(sin)); in evutil_parse_sockaddr_port()
1892 *outlen = sizeof(sin); in evutil_parse_sockaddr_port()
1904 const struct sockaddr_in *sin = (const struct sockaddr_in*)sa; in evutil_format_sockaddr_port() local
1905 res = evutil_inet_ntop(AF_INET, &sin->sin_addr,b,sizeof(b)); in evutil_format_sockaddr_port()
1906 port = ntohs(sin->sin_port); in evutil_format_sockaddr_port()
2130 struct sockaddr_in *sin = (struct sockaddr_in *)addr; in evutil_sockaddr_is_loopback() local
2131 return (ntohl(sin->sin_addr.s_addr) & 0xff000000) == 0x7f000000; in evutil_sockaddr_is_loopback()