HomeSort by relevance Sort by last modified time
    Searched defs:hp (Results 51 - 75 of 183) sorted by null

1 23 4 5 6 7 8

  /external/ltp/testcases/network/rpc/basic_tests/rpc01/
rpc1.c 26 struct hostent *hp; local
89 hp = gethostbyname(server);
90 if (hp == NULL) {
96 memcpy(&server_sin.sin_addr, hp->h_addr, sizeof(hp->h_addr));
104 if ((hp = gethostbyname(host_name)) != NULL)
105 host_address = (long)*((int *)hp->h_addr_list[0]);
  /external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/
rpc_pmap_rmtcall_performance.c 103 struct hostent *hp = NULL; local
115 if ((hp = gethostbyname(argc[1])) == NULL) {
121 sin.sin_addr.s_addr = *(u_int *) hp->h_addr;
  /external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/
rpc_clnttcp_create_performance.c 102 struct hostent *hp = NULL; local
109 if ((hp = gethostbyname(argc[1])) == NULL) {
115 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length);
  /external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/
rpc_clntudp_create_performance.c 101 struct hostent *hp = NULL; local
109 if ((hp = gethostbyname(argc[1])) == NULL) {
117 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length);
  /external/ltp/testcases/network/tcp_cmds/sendfile/
testsf_s.c 34 struct addrinfo *hp; local
59 if ((gai = getaddrinfo(argv[1], NULL, &hints, &hp)) != 0) {
62 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) {
67 memcpy(&sa, hp->ai_addr, hp->ai_addrlen);
  /frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
HPRecommendationPlugin.java 2 (c) Copyright 2016 HP Inc.
17 package com.android.printservice.recommendation.plugin.hp;
29 private static final String PDL__PCL = "application/vnd.hp-PCL";
45 "HP DESIGNJET T120",
46 "HP DESIGNJET T520",
47 "HP DESIGNJET T930",
48 "HP DESIGNJET T1530",
49 "HP DESIGNJET T2530",
50 "HP DESIGNJET T730",
51 "HP DESIGNJET T830"
    [all...]
MDnsUtils.java 17 package com.android.printservice.recommendation.plugin.hp;
ServiceRecommendationPlugin.java 17 package com.android.printservice.recommendation.plugin.hp;
ServiceResolveQueue.java 17 package com.android.printservice.recommendation.plugin.hp;
  /bionic/libc/dns/net/
getnameinfo.c 169 struct hostent *hp; local
306 hp = android_gethostbyaddrfornetcontext_proxy(addr, afd->a_addrlen, afd->a_af, &netcontext);
307 if (hp) {
315 p = strchr(hp->h_name, '.');
317 TODO: Before uncommenting rewrite to avoid modifying hp.
321 if (strlen(hp->h_name) + 1 > (size_t)hostlen) {
324 strlcpy(host, hp->h_name, hostlen);
  /bionic/libc/dns/resolv/
res_query.c 135 HEADER *hp = (HEADER *)(void *)answer; local
142 hp->rcode = NOERROR; /* default */
184 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
188 p_rcode(hp->rcode),
189 ntohs(hp->ancount),
190 ntohs(hp->nscount),
191 ntohs(hp->arcount));
193 switch (hp->rcode) {
229 HEADER *hp = (HEADER *)(void *)answer local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
getnameinfo.c 108 struct hostent *hp; local
189 hp = getipnodebyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af, &h_error);
191 hp = gethostbyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af);
195 if (hp) {
197 p = strchr(hp->h_name, '.');
200 if (strlen(hp->h_name) > hostlen) {
202 freehostent(hp);
206 strcpy(host, hp->h_name);
208 freehostent(hp);
  /device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
gethostnamadr.c 126 struct hostent *hp; local
129 hp = gethostbyname2(name, AF_INET6); /* XXX */
130 if (hp) /* XXX */
131 return (hp); /* XXX */
139 struct hostent *hp = 0; local
145 while (!hp) {
150 hp = _gethostbyhtname(name, type);
153 hp = _gethostbydnsname(name, type);
156 hp = _gethostbynisname(name, type);
161 return hp;
167 struct hostent *hp = 0; local
201 struct hostent *hp; local
    [all...]
getnameinfo.c 182 struct hostent *hp; local
323 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
325 if (hp) {
333 p = strchr(hp->h_name, '.');
338 if (strlen(hp->h_name) + 1 > hostlen) {
341 strlcpy(host, hp->h_name, hostlen);
res_mkupdate.c 112 HEADER *hp; local
134 hp = (HEADER *) buf;
135 hp->id = htons(++_res.id);
136 hp->opcode = ns_o_update;
137 hp->rcode = NOERROR;
354 hp->qdcount = htons(counts[0]);
355 hp->ancount = htons(counts[1]);
356 hp->nscount = htons(counts[2]);
357 hp->arcount = htons(counts[3]);
res_query.c 128 HEADER *hp = (HEADER *) answer; local
131 hp->rcode = NOERROR; /* default */
162 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
165 printf(";; rcode = %d, ancount=%d\n", hp->rcode,
166 ntohs(hp->ancount));
168 switch (hp->rcode) {
206 HEADER *hp = (HEADER *) answer; local
286 if (hp->rcode == SERVFAIL) {
  /external/curl/CMake/
CurlTests.c 118 struct hostent *hp; local
130 hp = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &h_errnop);
131 (void)hp;
134 rc = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &hp, &h_errnop);
143 (void)hp; /* not used for test */
146 rc = gethostbyname_r(address, &h, buffer, 8192, &hp, &h_errnop);
  /external/curl/lib/
socks.c 157 Curl_addrinfo *hp=NULL; local
174 hp=dns->addr;
175 if(hp) {
177 Curl_printable_address(hp, buf, sizeof(buf));
179 if(hp->ai_family == AF_INET) {
182 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr;
191 hp = NULL; /* fail! */
198 if(!hp) {
590 Curl_addrinfo *hp = NULL; local
608 hp=dns->addr
    [all...]
  /external/flatbuffers/samples/
SampleBinary.java 78 assert monster.hp() == (short)300;
  /external/ipsec-tools/src/racoon/
getcertsbyname.c 210 HEADER *hp; local
252 hp = (HEADER *)answer;
253 qdcount = ntohs(hp->qdcount);
254 ancount = ntohs(hp->ancount);
264 cp = (unsigned char *)(hp + 1);
  /external/ltp/testcases/network/tcp_cmds/echo/
echoes.c 51 struct addrinfo hints, *hp; local
68 if ((gai = getaddrinfo(argv[1], NULL, &hints, &hp)) != 0)
72 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI)
82 echofile(sp, hp, echo_struc[j].resultfile, argv[2]);
169 * struct hostent *hp;
171 * hp = gethostbyname(argv[1]);
177 * memcpy(&hostaddr,hp->h_addr_list[0],sizeof(struct in_addr));
192 * 36 hp = gethostbyname(argv[i])
    [all...]
  /external/nist-sip/java/gov/nist/core/
HostNameParser.java 266 HostPort hp = new HostPort(); local
267 hp.setHost(host);
279 hp.setPort(Integer.parseInt(port));
312 return hp;
334 HostPort hp = hnp.hostPort(true); local
335 System.out.println("["+hp.encode()+"]");
  /external/ppp/pppd/plugins/radius/
config.c 414 struct hostent *hp; local
425 if ((hp = gethostbyname (hostname)) == (struct hostent *) NULL)
429 for (paddr = hp->h_addr_list; *paddr; paddr++)
  /external/python/cpython2/Modules/
getnameinfo.c 100 struct hostent *hp; local
181 hp = getipnodebyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af, &h_error);
183 hp = gethostbyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af);
187 if (hp) {
189 p = strchr(hp->h_name, '.');
192 if (strlen(hp->h_name) > hostlen) {
194 freehostent(hp);
198 strcpy(host, hp->h_name);
200 freehostent(hp);
  /external/toybox/toys/pending/
arping.c 226 struct hostent *hp = gethostbyname2(*toys.optargs, AF_INET); local
228 if (!hp) perror_exit("bad address '%s'", *toys.optargs);
229 memcpy(&dest_addr, hp->h_addr, 4);

Completed in 685 milliseconds

1 23 4 5 6 7 8