Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd-10-stable/usr.sbin/nfsd/
Dnfsd.c115 struct addrinfo hints);
148 struct addrinfo *ai_udp, *ai_tcp, *ai_udp6, *ai_tcp6, hints; in main() local
286 memset(&hints, 0, sizeof hints); in main()
287 hints.ai_flags = AI_PASSIVE; in main()
288 hints.ai_family = AF_INET; in main()
289 hints.ai_socktype = SOCK_DGRAM; in main()
290 hints.ai_protocol = IPPROTO_UDP; in main()
291 ecode = getaddrinfo(NULL, "nfs", &hints, &ai_udp); in main()
305 memset(&hints, 0, sizeof hints); in main()
306 hints.ai_flags = AI_PASSIVE; in main()
[all …]
/freebsd-10-stable/contrib/unbound/iterator/
Diter_hints.c56 struct iter_hints* hints = (struct iter_hints*)calloc(1, in hints_create() local
58 if(!hints) in hints_create()
60 return hints; in hints_create()
76 static void hints_del_tree(struct iter_hints* hints) in hints_del_tree() argument
78 traverse_postorder(&hints->tree, &delhintnode, NULL); in hints_del_tree()
82 hints_delete(struct iter_hints* hints) in hints_delete() argument
84 if(!hints) in hints_delete()
86 hints_del_tree(hints); in hints_delete()
87 free(hints); in hints_delete()
166 hints_insert(struct iter_hints* hints, uint16_t c, struct delegpt* dp, in hints_insert() argument
[all …]
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-10-stable/contrib/less/
Dscrsize.c55 XSizeHints hints; local
60 if (!XGetWMNormalHints(dpy, window, &hints, &longjunk))
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;
[all …]
/freebsd-10-stable/usr.sbin/lpr/common_source/
Dnet.c91 struct addrinfo hints, *res, *ai; in getport() local
100 memset(&hints, 0, sizeof(hints)); in getport()
101 hints.ai_family = family; in getport()
102 hints.ai_socktype = SOCK_STREAM; in getport()
103 hints.ai_protocol = 0; in getport()
105 &hints, &res); in getport()
185 struct addrinfo hints, *local_res, *remote_res, *lr, *rr; in checkremote() local
203 memset(&hints, 0, sizeof(hints)); in checkremote()
204 hints.ai_family = family; in checkremote()
205 hints.ai_socktype = SOCK_STREAM; in checkremote()
[all …]
/freebsd-10-stable/crypto/heimdal/lib/roken/
Dgetaddrinfo.c44 const struct addrinfo *hints, in get_port_protocol_socktype() argument
54 if (hints != NULL && hints->ai_protocol != 0) { in get_port_protocol_socktype()
55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype()
64 if (hints != NULL) in get_port_protocol_socktype()
65 *socktype = hints->ai_socktype; in get_port_protocol_socktype()
180 get_null (const struct addrinfo *hints, in get_null() argument
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()
272 const struct addrinfo *hints, in get_number() argument
[all …]
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()
Dgetaddrinfo-test.c69 struct addrinfo hints; in doit() local
76 memset (&hints, 0, sizeof(hints)); in doit()
77 hints.ai_flags = flags; in doit()
78 hints.ai_family = family; in doit()
79 hints.ai_socktype = socktype; in doit()
81 ret = getaddrinfo (nodename, servname, &hints, &res); in doit()
/freebsd-10-stable/crypto/openssh/openbsd-compat/
Dfake-rfc2553.c124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument
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()
156 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument
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()
[all …]
/freebsd-10-stable/contrib/ntp/libntp/
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 …]
Dntp_rfc2553.c278 const struct addrinfo *hints);
282 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo() argument
305 if (hints != NULL) { in getaddrinfo()
306 ai->ai_flags = hints->ai_flags; in getaddrinfo()
307 ai->ai_family = hints->ai_family; in getaddrinfo()
308 ai->ai_socktype = hints->ai_socktype; in getaddrinfo()
309 ai->ai_protocol = hints->ai_protocol; in getaddrinfo()
311 family = hints->ai_family; in getaddrinfo()
312 socktype = hints->ai_socktype; in getaddrinfo()
313 protocol = hints->ai_protocol; in getaddrinfo()
[all …]
/freebsd-10-stable/contrib/ntp/sntp/libevent/
Devutil.c798 const struct evutil_addrinfo *hints) in evutil_new_addrinfo_() argument
801 EVUTIL_ASSERT(hints); in evutil_new_addrinfo_()
803 if (hints->ai_socktype == 0 && hints->ai_protocol == 0) { in evutil_new_addrinfo_()
807 memcpy(&tmp, hints, sizeof(tmp)); in evutil_new_addrinfo_()
832 res->ai_socktype = hints->ai_socktype; in evutil_new_addrinfo_()
833 res->ai_protocol = hints->ai_protocol; in evutil_new_addrinfo_()
872 const struct evutil_addrinfo *hints) in evutil_parse_servname() argument
878 if (!(hints->ai_flags & EVUTIL_AI_NUMERICSERV)) { in evutil_parse_servname()
917 evutil_getaddrinfo_infer_protocols(struct evutil_addrinfo *hints) in evutil_getaddrinfo_infer_protocols() argument
920 if (!hints->ai_protocol && hints->ai_socktype) { in evutil_getaddrinfo_infer_protocols()
[all …]
/freebsd-10-stable/contrib/unbound/compat/
Dfake-rfc2553.c119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument
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()
[all …]
/freebsd-10-stable/contrib/ldns/compat/
Dfake-rfc2553.c121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai() argument
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()
[all …]
/freebsd-10-stable/contrib/ntp/sntp/libevent/test/
Dregress_util.c928 struct evutil_addrinfo hints; in test_evutil_getaddrinfo() local
932 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
933 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
934 hints.ai_socktype = SOCK_STREAM; in test_evutil_getaddrinfo()
935 r = evutil_getaddrinfo("1.2.3.4", "8080", &hints, &ai); in test_evutil_getaddrinfo()
943 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
944 hints.ai_family = PF_UNSPEC; in test_evutil_getaddrinfo()
945 hints.ai_protocol = IPPROTO_UDP; in test_evutil_getaddrinfo()
946 r = evutil_getaddrinfo("1001:b0b::f00f", "4321", &hints, &ai); in test_evutil_getaddrinfo()
955 memset(&hints, 0, sizeof(hints)); in test_evutil_getaddrinfo()
[all …]
Dregress_dns.c1235 struct evutil_addrinfo hints, *ai = NULL; in test_bufferevent_connect_hostname() local
1236 memset(&hints, 0, sizeof(hints)); in test_bufferevent_connect_hostname()
1237 hints.ai_family = AF_INET; in test_bufferevent_connect_hostname()
1238 hints.ai_socktype = SOCK_STREAM; in test_bufferevent_connect_hostname()
1239 hints.ai_protocol = IPPROTO_TCP; in test_bufferevent_connect_hostname()
1241 "nonesuch.nowhere.example.com", "80", &hints, &ai); in test_bufferevent_connect_hostname()
1314 struct evutil_addrinfo hints, *a; in test_getaddrinfo_async() local
1341 memset(&hints, 0, sizeof(hints)); in test_getaddrinfo_async()
1342 hints.ai_family = PF_UNSPEC; in test_getaddrinfo_async()
1343 hints.ai_socktype = SOCK_STREAM; in test_getaddrinfo_async()
[all …]
/freebsd-10-stable/usr.sbin/rpc.statd/
Dstatd.c319 struct addrinfo hints, *res = NULL; in create_service() local
345 memset(&hints, 0, sizeof hints); in create_service()
346 hints.ai_family = si.si_af; in create_service()
347 hints.ai_socktype = si.si_socktype; in create_service()
348 hints.ai_protocol = si.si_proto; in create_service()
361 hints.ai_flags = AI_PASSIVE; in create_service()
371 switch (hints.ai_family) { in create_service()
375 hints.ai_flags |= AI_NUMERICHOST; in create_service()
390 hints.ai_flags |= AI_NUMERICHOST; in create_service()
415 res->ai_flags = hints.ai_flags; in create_service()
[all …]
/freebsd-10-stable/crypto/heimdal/lib/krb5/
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-10-stable/contrib/tcp_wrappers/
Dscaffold.c85 struct addrinfo hints, *res; local
87 memset(&hints, 0, sizeof(hints));
88 hints.ai_family = PF_UNSPEC;
89 hints.ai_socktype = SOCK_STREAM;
90 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
91 if (getaddrinfo(host, NULL, &hints, &res) == 0)
94 memset(&hints, 0, sizeof(hints));
95 hints.ai_family = PF_UNSPEC;
96 hints.ai_socktype = SOCK_STREAM;
97 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]
Dhosts_access.c363 struct addrinfo hints, *res; local
372 memset(&hints, 0, sizeof(hints));
373 hints.ai_family = AF_INET6;
374 hints.ai_socktype = SOCK_STREAM;
375 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
376 if ((ret = getaddrinfo(tok + 1, NULL, &hints, &res)) == 0) {
381 if (ret != 0 || getaddrinfo(string, NULL, &hints, &res) != 0)
451 struct addrinfo hints, *res; local
457 memset(&hints, 0, sizeof(hints));
458 hints.ai_family = AF_INET6;
[all …]
Dsocket.c175 struct addrinfo hints, *res, *res0 = NULL; local
217 memset(&hints, 0, sizeof(hints));
218 hints.ai_family = sin->sa_family;
219 hints.ai_socktype = SOCK_STREAM;
220 hints.ai_flags = AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST;
221 if ((err = getaddrinfo(host->name, NULL, &hints, &res0)) == 0) {
246 memset(&hints, 0, sizeof(hints));
247 hints.ai_family = sin->sa_family;
248 hints.ai_socktype = SOCK_STREAM;
249 hints.ai_flags = AI_PASSIVE | AI_CANONNAME;
[all …]
/freebsd-10-stable/contrib/netbsd-tests/net/net/
Dt_udp.c19 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-10-stable/crypto/heimdal/lib/ipc/
Dts-http.c77 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()
/freebsd-10-stable/usr.sbin/rpc.lockd/
Dlockd.c499 struct addrinfo hints, *res = NULL; in create_service() local
525 memset(&hints, 0, sizeof hints); in create_service()
526 hints.ai_family = si.si_af; in create_service()
527 hints.ai_socktype = si.si_socktype; in create_service()
528 hints.ai_protocol = si.si_proto; in create_service()
537 hints.ai_flags = AI_PASSIVE; in create_service()
555 switch (hints.ai_family) { in create_service()
559 hints.ai_flags |= AI_NUMERICHOST; in create_service()
575 hints.ai_flags |= AI_NUMERICHOST; in create_service()
600 res->ai_flags = hints.ai_flags; in create_service()
[all …]
/freebsd-10-stable/lib/libc/net/
Drcmdsh.c61 struct addrinfo hints, *res; in rcmdsh() local
81 memset(&hints, 0, sizeof(hints)); in rcmdsh()
82 hints.ai_flags = AI_CANONNAME; in rcmdsh()
83 hints.ai_family = PF_UNSPEC; in rcmdsh()
84 hints.ai_socktype = SOCK_STREAM; in rcmdsh()
87 error = getaddrinfo(*ahost, num, &hints, &res); in rcmdsh()

12345678910>>...19