Home
last modified time | relevance | path

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

/external/curl/lib/
Dsocks.c224 ssize_t hostnamelen = 0; in Curl_SOCKS4() local
235 hostnamelen = (ssize_t)strlen(hostname) + 1; /* length including NUL */ in Curl_SOCKS4()
236 if(packetsize + hostnamelen <= SOCKS4REQLEN) in Curl_SOCKS4()
239 hostnamelen = 0; /* Flag: hostname did not fit in buffer */ in Curl_SOCKS4()
244 packetsize + hostnamelen, in Curl_SOCKS4()
246 if(code || (written != packetsize + hostnamelen)) { in Curl_SOCKS4()
250 if(protocol4a && hostnamelen == 0) { in Curl_SOCKS4()
252 hostnamelen = (ssize_t)strlen(hostname) + 1; in Curl_SOCKS4()
253 code = Curl_write_plain(conn, sock, (char *)hostname, hostnamelen, in Curl_SOCKS4()
255 if(code || (written != hostnamelen)) { in Curl_SOCKS4()
/external/u-boot/net/
Dbootp.c505 int hostnamelen = strlen(hostname); in dhcp_extended() local
508 *e++ = hostnamelen; in dhcp_extended()
509 memcpy(e, hostname, hostnamelen); in dhcp_extended()
510 e += hostnamelen; in dhcp_extended()