Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/freebsd-13.1/usr.sbin/nfsd/
H A Dnfsd.c331 memset(&hints, 0, sizeof hints); in main()
355 memset(&hints, 0, sizeof hints); in main()
379 memset(&hints, 0, sizeof hints); in main()
403 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-13.1/sbin/ping/
H A Dmain.c72 struct addrinfo hints; in main() local
117 hints.ai_family = AF_INET; in main()
123 hints.ai_family = AF_INET6; in main()
125 hints.ai_family = AF_INET6; in main()
127 hints.ai_family = AF_INET; in main()
130 hints.ai_family = AF_INET; in main()
132 hints.ai_family = AF_INET6; in main()
136 memset(&hints, 0, sizeof(hints)); in main()
138 hints.ai_family = AF_UNSPEC; in main()
147 hints.ai_family = AF_INET; in main()
[all …]
/freebsd-13.1/contrib/ofed/librdmacm/
H A Daddrinfo.c150 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-13.1/contrib/unbound/iterator/
H A Diter_hints.c58 if(!hints) in hints_create()
60 return hints; in hints_create()
84 if(!hints) in hints_delete()
86 hints_del_tree(hints); in hints_delete()
87 free(hints); in hints_delete()
431 if(!read_root_hints(hints, f)) in read_root_hints_list()
441 hints_del_tree(hints); in hints_apply_cfg()
442 name_tree_init(&hints->tree); in hints_apply_cfg()
449 if(!read_stubs(hints, cfg)) in hints_apply_cfg()
526 if(!hints) return 0; in hints_get_mem()
[all …]
H A Diter_hints.h87 void hints_delete(struct iter_hints* hints);
95 int hints_apply_cfg(struct iter_hints* hints, struct config_file* cfg);
103 struct delegpt* hints_lookup_root(struct iter_hints* hints, uint16_t qclass);
115 int hints_next_root(struct iter_hints* hints, uint16_t* qclass);
129 struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints,
137 size_t hints_get_mem(struct iter_hints* hints);
149 int hints_add_stub(struct iter_hints* hints, uint16_t c, struct delegpt* dp,
159 void hints_delete_stub(struct iter_hints* hints, uint16_t c, uint8_t* nm);
/freebsd-13.1/contrib/less/
H A Dscrsize.c55 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-13.1/usr.sbin/lpr/common_source/
H A Dnet.c102 memset(&hints, 0, sizeof(hints)); in getport()
103 hints.ai_family = family; in getport()
104 hints.ai_socktype = SOCK_STREAM; in getport()
105 hints.ai_protocol = 0; in getport()
107 &hints, &res); in getport()
205 memset(&hints, 0, sizeof(hints)); in checkremote()
206 hints.ai_family = family; in checkremote()
208 hints.ai_flags = AI_PASSIVE; in checkremote()
217 memset(&hints, 0, sizeof(hints)); in checkremote()
218 hints.ai_family = family; in checkremote()
[all …]
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dgetaddrinfo.c54 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 Dgetaddrinfo_hostspec.c49 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-13.1/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c143 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-13.1/contrib/ntp/libntp/
H A Dsocktohost.c33 struct addrinfo hints; in socktohost() local
58 ZERO(hints); in socktohost()
59 hints.ai_family = AF(sock); in socktohost()
60 hints.ai_protocol = IPPROTO_UDP; in socktohost()
61 hints.ai_socktype = SOCK_DGRAM; in socktohost()
62 hints.ai_flags = 0; in socktohost()
65 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost()
71 hints.ai_flags = AI_CANONNAME; in socktohost()
73 hints.ai_flags |= AI_ADDRCONFIG; in socktohost()
75 a_info = getaddrinfo(pbuf, svc, &hints, &alist); in socktohost()
[all …]
H A Dntp_rfc2553.c305 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-13.1/usr.bin/getaddrinfo/
H A Dgetaddrinfo.c65 struct addrinfo hints = zero_addrinfo; in main() local
73 hints.ai_family = AF_UNSPEC; in main()
74 hints.ai_socktype = 0; in main()
75 hints.ai_protocol = 0; in main()
76 hints.ai_flags = 0; in main()
81 hints.ai_flags |= AI_CANONNAME; in main()
85 if (!parse_af(optarg, &hints.ai_family)) { in main()
92 hints.ai_flags |= AI_NUMERICHOST; in main()
96 hints.ai_flags |= AI_NUMERICSERV; in main()
111 hints.ai_flags |= AI_PASSIVE; in main()
[all …]
/freebsd-13.1/contrib/unbound/compat/
H A Dfake-rfc2553.c136 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-13.1/contrib/ldns/compat/
H A Dfake-rfc2553.c140 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-13.1/contrib/libevent/
H A Devutil.c807 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
924 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
932 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
972 if (hints->ai_family != PF_UNSPEC && hints->ai_family != PF_INET && in evutil_getaddrinfo_common_()
1052 if (hints->ai_family == PF_INET || hints->ai_family == PF_UNSPEC) { in evutil_getaddrinfo_common_()
1257 memset(&hints,0,sizeof(hints)); in test_for_getaddrinfo_hacks()
1259 hints.ai_flags = in test_for_getaddrinfo_hacks()
1360 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo()
1362 memset(&hints, 0, sizeof(hints)); in evutil_getaddrinfo()
1451 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo()
[all …]
/freebsd-13.1/contrib/ntp/sntp/libevent/
H A Devutil.c803 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
920 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
928 if (!hints->ai_socktype && hints->ai_protocol) { in evutil_getaddrinfo_infer_protocols()
968 if (hints->ai_family != PF_UNSPEC && hints->ai_family != PF_INET && in evutil_getaddrinfo_common_()
1048 if (hints->ai_family == PF_INET || hints->ai_family == PF_UNSPEC) { in evutil_getaddrinfo_common_()
1244 memset(&hints,0,sizeof(hints)); in test_for_getaddrinfo_hacks()
1246 hints.ai_flags = in test_for_getaddrinfo_hacks()
1344 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo()
1346 memset(&hints, 0, sizeof(hints)); in evutil_getaddrinfo()
1435 memcpy(&hints, hints_in, sizeof(hints)); in evutil_getaddrinfo()
[all …]
/freebsd-13.1/contrib/ntp/sntp/libevent/test/
H A Dregress_util.c932 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
943 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
955 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
956 hints.ai_family = PF_INET; in test_evutil_getaddrinfo()
976 hints.ai_family = PF_INET6; in test_evutil_getaddrinfo()
1011 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1026 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1034 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1042 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1073 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo_live()
[all …]
H A Dregress_dns.c1236 memset(&hints, 0, sizeof(hints)); in test_bufferevent_connect_hostname()
1341 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1358 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1369 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1384 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1402 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1424 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1445 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1466 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1491 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
[all …]
/freebsd-13.1/contrib/libevent/test/
H A Dregress_util.c932 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
943 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
955 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
956 hints.ai_family = PF_INET; in test_evutil_getaddrinfo()
976 hints.ai_family = PF_INET6; in test_evutil_getaddrinfo()
1011 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1026 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1034 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1042 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
1073 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo_live()
[all …]
H A Dregress_dns.c1265 memset(&hints, 0, sizeof(hints)); in test_bufferevent_connect_hostname()
1379 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1396 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1407 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1422 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1440 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1462 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1483 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1504 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1529 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
[all …]
/freebsd-13.1/contrib/libpcap/
H A Dnametoaddr.c183 struct addrinfo hints, *res; in pcap_nametoaddrinfo() local
186 memset(&hints, 0, sizeof(hints)); in pcap_nametoaddrinfo()
187 hints.ai_family = PF_UNSPEC; in pcap_nametoaddrinfo()
318 memset(&hints, 0, sizeof(hints)); in pcap_nametoport()
319 hints.ai_family = PF_UNSPEC; in pcap_nametoport()
320 hints.ai_socktype = SOCK_STREAM; in pcap_nametoport()
321 hints.ai_protocol = IPPROTO_TCP; in pcap_nametoport()
362 memset(&hints, 0, sizeof(hints)); in pcap_nametoport()
363 hints.ai_family = PF_UNSPEC; in pcap_nametoport()
364 hints.ai_socktype = SOCK_DGRAM; in pcap_nametoport()
[all …]
/freebsd-13.1/usr.sbin/rpc.statd/
H A Dstatd.c356 memset(&hints, 0, sizeof hints); in create_service()
357 hints.ai_family = si.si_af; in create_service()
359 hints.ai_protocol = si.si_proto; in create_service()
372 hints.ai_flags = AI_PASSIVE; in create_service()
382 switch (hints.ai_family) { in create_service()
426 res->ai_flags = hints.ai_flags; in create_service()
459 &hints, &res)) != 0) { in create_service()
470 &hints, &res)) != 0) { in create_service()
583 memset(&hints, 0, sizeof hints); in complete_service()
584 hints.ai_flags = AI_PASSIVE; in complete_service()
[all …]
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dexpand_hostname.c71 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-13.1/contrib/tcp_wrappers/
H A Dscaffold.c86 struct addrinfo hints, *res; local
88 memset(&hints, 0, sizeof(hints));
89 hints.ai_family = PF_UNSPEC;
90 hints.ai_socktype = SOCK_STREAM;
91 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
92 if (getaddrinfo(host, NULL, &hints, &res) == 0)
95 memset(&hints, 0, sizeof(hints));
96 hints.ai_family = PF_UNSPEC;
97 hints.ai_socktype = SOCK_STREAM;
98 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]

12345678910>>...20