Home
last modified time | relevance | path

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

/external/curl/lib/
Dsocks.c226 ssize_t hostnamelen = 0; in Curl_SOCKS4() local
237 hostnamelen = (ssize_t)strlen(hostname) + 1; /* length including NUL */ in Curl_SOCKS4()
238 if(packetsize + hostnamelen <= SOCKS4REQLEN) in Curl_SOCKS4()
241 hostnamelen = 0; /* Flag: hostname did not fit in buffer */ in Curl_SOCKS4()
246 packetsize + hostnamelen, in Curl_SOCKS4()
248 if(code || (written != packetsize + hostnamelen)) { in Curl_SOCKS4()
252 if(protocol4a && hostnamelen == 0) { in Curl_SOCKS4()
254 hostnamelen = (ssize_t)strlen(hostname) + 1; in Curl_SOCKS4()
255 code = Curl_write_plain(conn, sock, (char *)hostname, hostnamelen, in Curl_SOCKS4()
257 if(code || (written != hostnamelen)) { in Curl_SOCKS4()
/external/u-boot/net/
Dbootp.c506 int hostnamelen = strlen(hostname); in dhcp_extended() local
509 *e++ = hostnamelen; in dhcp_extended()
510 memcpy(e, hostname, hostnamelen); in dhcp_extended()
511 e += hostnamelen; in dhcp_extended()