/freebsd/contrib/unbound/iterator/ |
H A D | iter_hints.c | 58 if(!hints) in hints_create() 60 lock_rw_init(&hints->lock); in hints_create() 61 lock_protect(&hints->lock, &hints->tree, sizeof(hints->tree)); in hints_create() 62 return hints; in hints_create() 86 if(!hints) in hints_delete() 88 lock_rw_destroy(&hints->lock); in hints_delete() 89 hints_del_tree(hints); in hints_delete() 90 free(hints); in hints_delete() 446 hints_del_tree(hints); in hints_apply_cfg() 564 if(!hints) return 0; in hints_get_mem() [all …]
|
H A D | iter_hints.h | 92 void hints_delete(struct iter_hints* hints); 100 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg); 115 struct delegpt* hints_find(struct iter_hints* hints, uint8_t* qname, 125 struct delegpt* hints_find_root(struct iter_hints* hints, 141 int hints_next_root(struct iter_hints* hints, uint16_t* qclass, int nolock); 161 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints, 170 size_t hints_get_mem(struct iter_hints* hints); 185 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp, 198 void hints_delete_stub(struct iter_hints* hints, uint16_t c,
|
/freebsd/usr.sbin/nfsd/ |
H A D | nfsd.c | 317 memset(&hints, 0, sizeof hints); in main() 341 memset(&hints, 0, sizeof hints); in main() 365 memset(&hints, 0, sizeof hints); in main() 389 memset(&hints, 0, sizeof hints); in main() 503 memset(&hints, 0, sizeof hints); in main() 537 memset(&hints, 0, sizeof hints); in main() 569 memset(&hints, 0, sizeof hints); in main() 611 memset(&hints, 0, sizeof hints); in main() 645 memset(&hints, 0, sizeof hints); in main() 682 memset(&hints, 0, sizeof hints); in main() [all …]
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | addrinfo.c | 150 if (hints->ai_qp_type) { in ucma_convert_to_rai() 163 if (hints->ai_port_space) { in ucma_convert_to_rai() 181 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && in ucma_convert_to_rai() 198 if ((hints->ai_flags & RAI_FAMILY) && (hints->ai_family == AF_IB) && in ucma_convert_to_rai() 223 if (hints != &nohints) { in ucma_getaddrinfo() 255 if (!hints) in rdma_getaddrinfo() 256 hints = &nohints; in rdma_getaddrinfo() 265 if (hints->ai_dst_len) { in rdma_getaddrinfo() 267 hints->ai_dst_addr, hints->ai_dst_len); in rdma_getaddrinfo() 275 hints->ai_src_addr, hints->ai_src_len); in rdma_getaddrinfo() [all …]
|
/freebsd/contrib/less/ |
H A D | scrsize.c | 55 XSizeHints hints; local 62 if (!(hints.flags & PResizeInc)) 64 if (hints.width_inc == 0 || hints.height_inc == 0) 66 if (!(hints.flags & (PBaseSize|PMinSize))) 68 if (hints.flags & PBaseSize) 70 win_attributes.width -= hints.base_width; 71 win_attributes.height -= hints.base_height; 74 win_attributes.width -= hints.min_width; 75 win_attributes.height -= hints.min_height; 77 *p_width = win_attributes.width / hints.width_inc; [all …]
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | net.c | 98 memset(&hints, 0, sizeof(hints)); in getport() 99 hints.ai_family = family; in getport() 100 hints.ai_socktype = SOCK_STREAM; in getport() 101 hints.ai_protocol = 0; in getport() 103 &hints, &res); in getport() 201 memset(&hints, 0, sizeof(hints)); in checkremote() 202 hints.ai_family = family; in checkremote() 204 hints.ai_flags = AI_PASSIVE; in checkremote() 213 memset(&hints, 0, sizeof(hints)); in checkremote() 214 hints.ai_family = family; in checkremote() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo.c | 54 if (hints != NULL && hints->ai_protocol != 0) { in get_port_protocol_socktype() 64 if (hints != NULL) in get_port_protocol_socktype() 193 if (hints != NULL) in get_null() 194 family = hints->ai_family; in get_null() 196 if (hints && hints->ai_flags & AI_PASSIVE) { in get_null() 283 if (hints != NULL) { in get_number() 284 family = hints->ai_family; in get_number() 325 if (hints != NULL) { in get_nodes() 327 flags = hints->ai_flags; in get_nodes() 386 if (hints != NULL in getaddrinfo() [all …]
|
H A D | getaddrinfo_hostspec.c | 49 struct addrinfo hints; in roken_getaddrinfo_hostspec2() local 65 memset(&hints, 0, sizeof(hints)); in roken_getaddrinfo_hostspec2() 67 hints.ai_socktype = socktype; in roken_getaddrinfo_hostspec2() 71 hints.ai_socktype = hstp->socktype; in roken_getaddrinfo_hostspec2() 72 hints.ai_protocol = hstp->protocol; in roken_getaddrinfo_hostspec2() 92 return getaddrinfo (host, portstr, &hints, ai); in roken_getaddrinfo_hostspec2()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 143 if (hints->ai_socktype) in malloc_ai() 144 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 148 if (hints->ai_protocol) in malloc_ai() 149 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 166 if (hints && hints->ai_family != AF_UNSPEC && in getaddrinfo() 167 hints->ai_family != AF_INET) in getaddrinfo() 181 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 185 *res = malloc_ai(port, addr, hints); in getaddrinfo() 199 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo() 206 if (hints && hints->ai_flags & AI_NUMERICHOST) in getaddrinfo() [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | socktohost.c | 32 struct addrinfo hints; in socktohost() local 57 ZERO(hints); in socktohost() 58 hints.ai_family = AF(sock); in socktohost() 59 hints.ai_protocol = IPPROTO_UDP; in socktohost() 60 hints.ai_socktype = SOCK_DGRAM; in socktohost() 61 hints.ai_flags = 0; in socktohost() 64 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() 70 hints.ai_flags = AI_CANONNAME; in socktohost() 72 hints.ai_flags |= AI_ADDRCONFIG; in socktohost() 74 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost() [all …]
|
H A D | ntp_rfc2553.c | 305 if (hints != NULL) { in getaddrinfo() 311 family = hints->ai_family; in getaddrinfo() 312 socktype = hints->ai_socktype; in getaddrinfo() 313 protocol = hints->ai_protocol; in getaddrinfo() 314 flags = hints->ai_flags; in getaddrinfo() 318 switch (hints->ai_socktype) { in getaddrinfo() 329 switch (hints->ai_socktype) { in getaddrinfo() 346 switch (hints->ai_socktype) { in getaddrinfo() 467 const struct addrinfo *hints) in do_nodename() argument 538 if (hints != NULL && (hints->ai_flags & AI_NUMERICHOST)) in do_nodename() [all …]
|
/freebsd/usr.bin/getaddrinfo/ |
H A D | getaddrinfo.c | 62 struct addrinfo hints = zero_addrinfo; in main() local 70 hints.ai_family = AF_UNSPEC; in main() 71 hints.ai_socktype = 0; in main() 72 hints.ai_protocol = 0; in main() 73 hints.ai_flags = 0; in main() 78 hints.ai_flags |= AI_CANONNAME; in main() 82 if (!parse_af(optarg, &hints.ai_family)) { in main() 89 hints.ai_flags |= AI_NUMERICHOST; in main() 93 hints.ai_flags |= AI_NUMERICSERV; in main() 108 hints.ai_flags |= AI_PASSIVE; in main() [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | fake-rfc2553.c | 136 if (hints->ai_socktype) in malloc_ai() 137 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 141 if (hints->ai_protocol) in malloc_ai() 142 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 149 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 171 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 175 *res = malloc_ai(port, addr, hints); in getaddrinfo() 182 *res = malloc_ai(port, htonl(0x7f000001), hints); in getaddrinfo() 189 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo() 196 if (hints && hints->ai_flags & AI_NUMERICHOST) in getaddrinfo() [all …]
|
/freebsd/contrib/ldns/compat/ |
H A D | fake-rfc2553.c | 140 if (hints->ai_socktype) in malloc_ai() 141 ai->ai_socktype = hints->ai_socktype; in malloc_ai() 145 if (hints->ai_protocol) in malloc_ai() 146 ai->ai_protocol = hints->ai_protocol; in malloc_ai() 153 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument 175 if (hints && hints->ai_flags & AI_PASSIVE) { in getaddrinfo() 179 *res = malloc_ai(port, addr, hints); in getaddrinfo() 186 *res = malloc_ai(port, htonl(0x7f000001), hints); in getaddrinfo() 193 *res = malloc_ai(port, in.s_addr, hints); in getaddrinfo() 200 if (hints && hints->ai_flags & AI_NUMERICHOST) in getaddrinfo() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_util.c | 1005 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1016 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1028 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1029 hints.ai_family = PF_INET; in test_evutil_getaddrinfo() 1084 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1099 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1107 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1115 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1146 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo_live() 1147 hints.ai_family = PF_INET; in test_evutil_getaddrinfo_live() [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress_util.c | 1005 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1016 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1028 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1029 hints.ai_family = PF_INET; in test_evutil_getaddrinfo() 1084 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1099 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1107 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1115 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo() 1146 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo_live() 1147 hints.ai_family = PF_INET; in test_evutil_getaddrinfo_live() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evutil.c | 838 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_() 955 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols() 963 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols() 1004 if (hints->ai_family != PF_UNSPEC && hints->ai_family != PF_INET && in evutil_getaddrinfo_common_() 1086 if (hints->ai_family == PF_INET || hints->ai_family == PF_UNSPEC) { in evutil_getaddrinfo_common_() 1290 memset(&hints,0,sizeof(hints)); in test_for_getaddrinfo_hacks() 1292 hints.ai_flags = in test_for_getaddrinfo_hacks() 1393 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo() 1395 memset(&hints, 0, sizeof(hints)); in evutil_getaddrinfo() 1484 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo() [all …]
|
/freebsd/contrib/libevent/ |
H A D | evutil.c | 838 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_() 955 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols() 963 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols() 1004 if (hints->ai_family != PF_UNSPEC && hints->ai_family != PF_INET && in evutil_getaddrinfo_common_() 1086 if (hints->ai_family == PF_INET || hints->ai_family == PF_UNSPEC) { in evutil_getaddrinfo_common_() 1290 memset(&hints,0,sizeof(hints)); in test_for_getaddrinfo_hacks() 1292 hints.ai_flags = in test_for_getaddrinfo_hacks() 1393 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo() 1395 memset(&hints, 0, sizeof(hints)); in evutil_getaddrinfo() 1484 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo() [all …]
|
/freebsd/usr.sbin/rpc.statd/ |
H A D | statd.c | 354 memset(&hints, 0, sizeof hints); in create_service() 355 hints.ai_family = si.si_af; in create_service() 357 hints.ai_protocol = si.si_proto; in create_service() 370 hints.ai_flags = AI_PASSIVE; in create_service() 380 switch (hints.ai_family) { in create_service() 424 res->ai_flags = hints.ai_flags; in create_service() 457 &hints, &res)) != 0) { in create_service() 468 &hints, &res)) != 0) { in create_service() 581 memset(&hints, 0, sizeof hints); in complete_service() 582 hints.ai_flags = AI_PASSIVE; in complete_service() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | expand_hostname.c | 71 struct addrinfo *ai, *a, hints; in krb5_expand_hostname() local 77 memset (&hints, 0, sizeof(hints)); in krb5_expand_hostname() 78 hints.ai_flags = AI_CANONNAME; in krb5_expand_hostname() 80 error = getaddrinfo (orig_hostname, NULL, &hints, &ai); in krb5_expand_hostname() 149 struct addrinfo *ai, *a, hints; in krb5_expand_hostname_realms() local 157 memset (&hints, 0, sizeof(hints)); in krb5_expand_hostname_realms() 158 hints.ai_flags = AI_CANONNAME; in krb5_expand_hostname_realms() 160 error = getaddrinfo (orig_hostname, NULL, &hints, &ai); in krb5_expand_hostname_realms()
|
/freebsd/contrib/tcp_wrappers/ |
H A D | scaffold.c | 84 struct addrinfo hints, *res; in find_inet_addr() local 86 memset(&hints, 0, sizeof(hints)); in find_inet_addr() 87 hints.ai_family = PF_UNSPEC; in find_inet_addr() 88 hints.ai_socktype = SOCK_STREAM; in find_inet_addr() 89 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST; in find_inet_addr() 90 if (getaddrinfo(host, NULL, &hints, &res) == 0) in find_inet_addr() 93 memset(&hints, 0, sizeof(hints)); in find_inet_addr() 94 hints.ai_family = PF_UNSPEC; in find_inet_addr() 95 hints.ai_socktype = SOCK_STREAM; in find_inet_addr() 96 hints.ai_flags = AI_PASSIVE | AI_CANONNAME; in find_inet_addr() [all …]
|
H A D | socket.c | 171 struct addrinfo hints, *res, *res0 = NULL; in sock_hostname() local 213 memset(&hints, 0, sizeof(hints)); in sock_hostname() 214 hints.ai_family = sin->sa_family; in sock_hostname() 215 hints.ai_socktype = SOCK_STREAM; in sock_hostname() 216 hints.ai_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST; in sock_hostname() 217 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) { in sock_hostname() 242 memset(&hints, 0, sizeof(hints)); in sock_hostname() 243 hints.ai_family = sin->sa_family; in sock_hostname() 244 hints.ai_socktype = SOCK_STREAM; in sock_hostname() 245 hints.ai_flags = AI_PASSIVE | AI_CANONNAME; in sock_hostname() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | nametoaddr.c | 200 struct addrinfo hints, *res; in pcap_nametoaddrinfo() local 203 memset(&hints, 0, sizeof(hints)); in pcap_nametoaddrinfo() 204 hints.ai_family = PF_UNSPEC; in pcap_nametoaddrinfo() 339 memset(&hints, 0, sizeof(hints)); in pcap_nametoport() 340 hints.ai_family = PF_UNSPEC; in pcap_nametoport() 341 hints.ai_socktype = SOCK_STREAM; in pcap_nametoport() 342 hints.ai_protocol = IPPROTO_TCP; in pcap_nametoport() 383 memset(&hints, 0, sizeof(hints)); in pcap_nametoport() 384 hints.ai_family = PF_UNSPEC; in pcap_nametoport() 385 hints.ai_socktype = SOCK_DGRAM; in pcap_nametoport() [all …]
|
/freebsd/contrib/netbsd-tests/net/net/ |
H A D | t_udp.c | 19 struct addrinfo hints; in sendit() local 25 memset(&hints, 0, sizeof(hints)); in sendit() 26 hints.ai_family = family; in sendit() 27 hints.ai_socktype = SOCK_DGRAM; in sendit() 28 hints.ai_protocol = IPPROTO_UDP; in sendit() 29 hints.ai_flags = 0; in sendit() 31 e = getaddrinfo("localhost", "9999", &hints, &res); in sendit()
|
/freebsd/crypto/heimdal/lib/ipc/ |
H A D | ts-http.c | 77 struct addrinfo hints, *res, *res0; in setup_sockets() local 81 memset(&hints, 0, sizeof(hints)); in setup_sockets() 82 hints.ai_family = PF_UNSPEC; in setup_sockets() 83 hints.ai_socktype = SOCK_STREAM; in setup_sockets() 84 hints.ai_flags = AI_PASSIVE; in setup_sockets() 85 ret = getaddrinfo(NULL, "8080", &hints, &res0); in setup_sockets()
|