Home
last modified time | relevance | path

Searched refs:sockin (Results 1 – 2 of 2) sorted by relevance

/external/toybox/toys/pending/
Droute.c78 static int get_hostname(char *ipstr, struct sockaddr_in *sockin) in get_hostname() argument
82 sockin->sin_family = AF_INET; in get_hostname()
83 sockin->sin_port = 0; in get_hostname()
86 sockin->sin_addr.s_addr = INADDR_ANY; in get_hostname()
90 if (inet_aton(ipstr, &sockin->sin_addr)) return 0; in get_hostname()
92 memcpy(&sockin->sin_addr, host->h_addr_list[0], sizeof(struct in_addr)); in get_hostname()
/external/libxml2/
Dnanohttp.c1049 struct sockaddr_in sockin; in xmlNanoHTTPConnectHost() local
1057 memset (&sockin, 0, sizeof(sockin)); in xmlNanoHTTPConnectHost()
1091 if ((size_t)res->ai_addrlen > sizeof(sockin)) { in xmlNanoHTTPConnectHost()
1096 memcpy (&sockin, res->ai_addr, res->ai_addrlen); in xmlNanoHTTPConnectHost()
1097 sockin.sin_port = htons (port); in xmlNanoHTTPConnectHost()
1098 addr = (struct sockaddr *)&sockin; in xmlNanoHTTPConnectHost()
1185 sockin.sin_family = h->h_addrtype; in xmlNanoHTTPConnectHost()
1186 sockin.sin_addr = ia; in xmlNanoHTTPConnectHost()
1187 sockin.sin_port = (unsigned short)htons ((unsigned short)port); in xmlNanoHTTPConnectHost()
1188 addr = (struct sockaddr *) &sockin; in xmlNanoHTTPConnectHost()