Home
last modified time | relevance | path

Searched refs:hptr (Results 1 – 14 of 14) sorted by relevance

/freebsd/libexec/mknetid/
H A Dmknetid.c108 char *ptr, *pidptr, *gidptr, *hptr; in main() local
245 if (!(hptr = strpbrk(ptr, "#\n"))) in main()
247 *hptr = '\0'; in main()
248 if (!(hptr = strpbrk(ptr, " \t"))) in main()
250 *hptr++ = '\0'; in main()
251 ptr = hptr; in main()
254 if (!(hptr = strpbrk(ptr, " \t"))) in main()
256 *hptr++ = '\0'; in main()
/freebsd/lib/libc/net/
H A Dgethostbyht.c172 gethostent_r(struct hostent *hptr, char *buffer, size_t buflen, in gethostent_r() argument
192 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in gethostent_r()
197 *result = hptr; in gethostent_r()
224 struct hostent *hptr, he; in _ht_gethostbyname() local
232 hptr = va_arg(ap, struct hostent *); in _ht_gethostbyname()
270 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyname()
276 *((struct hostent **)rval) = hptr; in _ht_gethostbyname()
289 struct hostent *hptr, he; in _ht_gethostbyaddr() local
297 hptr = va_arg(ap, struct hostent *); in _ht_gethostbyaddr()
327 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyaddr()
[all …]
H A Dgethostbynis.c210 struct hostent *hptr, he; in _nis_gethostbyname() local
216 hptr = va_arg(ap, struct hostent *); in _nis_gethostbyname()
235 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _nis_gethostbyname()
241 *((struct hostent **)rval) = hptr; in _nis_gethostbyname()
259 struct hostent *hptr, he; in _nis_gethostbyaddr() local
266 hptr = va_arg(ap, struct hostent *); in _nis_gethostbyaddr()
285 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _nis_gethostbyaddr()
291 *((struct hostent **)rval) = hptr; in _nis_gethostbyaddr()
H A Dgethostnamadr.c94 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, in __copy_hostent() argument
120 hptr->h_addrtype = he->h_addrtype; in __copy_hostent()
121 n = hptr->h_length = he->h_length; in __copy_hostent()
127 hptr->h_addr_list = ptr; in __copy_hostent()
130 hptr->h_addr_list[i] = cp; in __copy_hostent()
133 hptr->h_addr_list[i] = NULL; in __copy_hostent()
139 hptr->h_name = cp; in __copy_hostent()
143 hptr->h_aliases = ptr; in __copy_hostent()
147 hptr->h_aliases[i] = cp; in __copy_hostent()
150 hptr->h_aliases[i] = NULL; in __copy_hostent()
H A Dgethostbydns.c469 struct hostent *hptr, he; in _dns_gethostbyname() local
477 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyname()
540 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyname()
547 *((struct hostent **)rval) = hptr; in _dns_gethostbyname()
561 struct hostent *hptr, he; in _dns_gethostbyaddr() local
579 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyaddr()
699 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyaddr()
706 *((struct hostent **)rval) = hptr; in _dns_gethostbyaddr()
/freebsd/crypto/heimdal/lib/asn1/
H A Dhash.c73 Hashentry *hptr; in _search() local
77 for (hptr = htab->tab[(*htab->hash) (ptr) % htab->sz]; in _search()
78 hptr; in _search()
79 hptr = hptr->next) in _search()
80 if ((*htab->cmp) (ptr, hptr->ptr) == 0) in _search()
82 return hptr; in _search()
/freebsd/sbin/hastd/
H A Dhast_proto.c84 void *dptr, *hptr; in hast_proto_send() local
116 hptr = ebuf_data(eb, &hsize); in hast_proto_send()
117 if (proto_send(conn, hptr, hsize) == -1) in hast_proto_send()
135 void *hptr; in hast_proto_recv_hdr() local
155 hptr = ebuf_data(eb, NULL); in hast_proto_recv_hdr()
156 PJDLOG_ASSERT(hptr != NULL); in hast_proto_recv_hdr()
157 if (proto_recv(conn, hptr, hdr.size) == -1) in hast_proto_recv_hdr()
/freebsd/sys/netinet/libalias/
H A Dalias_pptp.c432 PptpMsgHead hptr; in AliasVerifyPptp() local
446 hptr = (PptpMsgHead)tcp_next(tc); in AliasVerifyPptp()
449 *ptype = ntohs(hptr->type); in AliasVerifyPptp()
452 if ((ntohs(hptr->msgType) != PPTP_CTRL_MSG_TYPE) || in AliasVerifyPptp()
453 (ntohl(hptr->magic) != PPTP_MAGIC)) in AliasVerifyPptp()
462 return ((PptpCallId)(hptr + 1)); in AliasVerifyPptp()
/freebsd/usr.sbin/ypserv/
H A Dyp_dnslookup.c170 HEADER *hptr; in yp_send_dns_query() local
184 hptr = (HEADER *)&buf; in yp_send_dns_query()
185 id = ntohs(hptr->id); in yp_send_dns_query()
349 HEADER *hptr; in yp_run_dnsq() local
373 hptr = (HEADER *)&buf; in yp_run_dnsq()
375 (q = yp_find_dnsqent(ntohs(hptr->id), BY_DNS_ID)) == NULL) { in yp_run_dnsq()
/freebsd/sbin/ipf/ippool/
H A Dippool.c757 iphtable_t *hptr; in poollist_dead() local
804 hptr = tables[role]; in poollist_dead()
805 while (hptr != NULL) { in poollist_dead()
806 hptr = printhash(hptr, kmemcpywrap, in poollist_dead()
811 hptr = tables[role]; in poollist_dead()
812 while (hptr != NULL) { in poollist_dead()
813 hptr = printhash(hptr, kmemcpywrap, in poollist_dead()
/freebsd/sys/netgraph/
H A Dng_bridge.c1166 struct ng_bridge_host **hptr = &SLIST_FIRST(&priv->tab[bucket]); in ng_bridge_remove_hosts() local
1168 while (*hptr != NULL) { in ng_bridge_remove_hosts()
1169 struct ng_bridge_host *const host = *hptr; in ng_bridge_remove_hosts()
1172 *hptr = SLIST_NEXT(host, next); in ng_bridge_remove_hosts()
1176 hptr = &SLIST_NEXT(host, next); in ng_bridge_remove_hosts()
1216 struct ng_bridge_host **hptr = &SLIST_FIRST(&priv->tab[bucket]); in ng_bridge_timeout() local
1218 while (*hptr != NULL) { in ng_bridge_timeout()
1219 struct ng_bridge_host *const host = *hptr; in ng_bridge_timeout()
1223 *hptr = SLIST_NEXT(host, next); in ng_bridge_timeout()
1229 hptr = &SLIST_NEXT(host, next); in ng_bridge_timeout()
/freebsd/contrib/arm-optimized-routines/networking/test/
H A Dchksum.c41 const uint16_t *may_alias hptr = ptr; in checksum_simple() local
47 sum += *hptr++; in checksum_simple()
53 sum += *(uint8_t *) hptr; in checksum_simple()
/freebsd/usr.bin/rpcgen/
H A Drpc_cout.c700 char *ptr, *hptr; in upcase() local
704 hptr = ptr; in upcase()
709 return (hptr); in upcase()
/freebsd/usr.sbin/ppp/
H A Dip.c501 u_short *hptr, tmp; in ip_LogDNS() local
510 hptr = (u_short *)&header; in ip_LogDNS()
515 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */ in ip_LogDNS()