Searched refs:hints (Results 1 - 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dgethost.c19 struct addrinfo hints, *ai; local
31 bzero(&hints, sizeof (hints));
33 hints.ai_family = AF_INET;
35 hints.ai_family = AF_INET6;
37 error = getaddrinfo(name, NULL, &hints, &ai);
/illumos-gate/usr/src/cmd/lms/tools/
H A DATNetworkTool.cpp250 struct addrinfo hints, *paddr, *paddrp; local
268 memset(&hints, 0, sizeof(hints));
270 hints.ai_family = PF_UNSPEC;
272 hints.ai_family = family;
274 hints.ai_socktype = SOCK_STREAM;
275 if (0 != (error = getaddrinfo(hbuf, pbuf, &hints, &paddrp))) {
373 struct addrinfo hints, *paddr, *paddrp; local
376 memset(&hints, 0, sizeof(hints));
478 struct addrinfo hints, *paddr, *paddrp; local
588 struct addrinfo hints, *paddr, *paddrp; local
657 struct addrinfo hints, *paddr, *paddrp; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Daddr_match.c101 struct addrinfo *res, hints; local
104 (void) memset(&hints, 0, sizeof (hints));
105 hints.ai_flags = AI_CANONNAME|AI_V4MAPPED|AI_ADDRCONFIG|AI_ALL;
106 hints.ai_family = fromp->ss_family;
107 if (getaddrinfo(hostname, NULL, &hints, &res) == 0) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhostaddr.c43 struct addrinfo hints, *ai, *aip; local
49 memset (&hints, 0, sizeof (hints));
50 hints.ai_flags = AI_NUMERICHOST;
55 hints.ai_socktype = SOCK_DGRAM;
57 r = getaddrinfo (name, 0, &hints, &ai);
59 hints.ai_flags &= ~AI_NUMERICHOST;
60 r = getaddrinfo (name, 0, &hints, &ai);
H A Dhst_realm.c170 struct addrinfo *ai, hints; local
173 memset (&hints, 0, sizeof (hints));
174 hints.ai_flags = AI_CANONNAME;
175 err = getaddrinfo (name, 0, &hints, &ai);
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dgetaddr.c119 struct addrinfo hints, *res; local
153 memset(&hints, 0, sizeof (hints));
154 hints.ai_flags = AI_CANONNAME;
155 hints.ai_family = PF_UNSPEC;
156 hints.ai_socktype = SOCK_STREAM;
157 gaierr = getaddrinfo(srvaddr_str, NULL, &hints, &res);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drdate.c89 struct addrinfo hints; local
98 (void) memset(&hints, 0, sizeof (hints));
99 hints.ai_protocol = IPPROTO_TCP;
116 rc = getaddrinfo(argv[1], "time", &hints, &res);
H A Dwhois.c221 struct addrinfo hints, *res; local
224 (void) memset(&hints, 0, sizeof (hints));
225 hints.ai_flags = 0;
226 hints.ai_family = AF_UNSPEC;
227 hints.ai_socktype = SOCK_STREAM;
228 error = getaddrinfo(host, port, &hints, &res);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Drexec.c78 struct addrinfo hints; local
88 memset(&hints, 0, sizeof (hints));
90 hints.ai_flags = AI_CANONNAME|AI_ADDRCONFIG|AI_V4MAPPED;
91 hints.ai_socktype = SOCK_STREAM;
92 hints.ai_family = af;
93 rc = getaddrinfo(*ahost, aport, &hints, &res);
H A Dgetaddrinfo.c120 * hints - optional argument that points to an addrinfo structure
121 * to provide hints on the type of socket that the caller
123 * Possible setting of the ai_flags member of the hints structure:
194 const struct addrinfo *hints, struct addrinfo **res, int version)
229 if (hints != NULL) {
230 /* check for bad flags in hints */
231 if ((hints->ai_flags != 0) && (hints->ai_flags & ~AI_MASK)) {
236 (hints->ai_flags & AI_CANONNAME)) {
240 if (hints
193 _getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res, int version) argument
547 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument
554 __xnet_getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument
[all...]
H A Drcmd.c107 struct addrinfo hints; local
136 memset(&hints, 0, sizeof (hints));
137 hints.ai_socktype = SOCK_STREAM;
138 hints.ai_flags = AI_CANONNAME;
140 hints.ai_flags |= AI_V4MAPPED;
141 hints.ai_family = AF_UNSPEC;
143 hints.ai_family = af;
146 rc = getaddrinfo(*ahost, aport, &hints, &res);
/illumos-gate/usr/src/uts/intel/sys/
H A Dcpu.h60 uint32_t hints);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dsocks.c77 struct addrinfo hints, *res; local
79 bzero(&hints, sizeof (hints));
80 hints.ai_family = v4only ? PF_INET : PF_UNSPEC;
81 hints.ai_flags = numeric ? AI_NUMERICHOST : 0;
82 hints.ai_socktype = SOCK_STREAM;
83 r = getaddrinfo(h, p, &hints, &res);
H A Dnetcat.c134 struct addrinfo hints; local
284 (void) memset(&hints, 0, sizeof (struct addrinfo));
285 hints.ai_family = family;
286 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM;
287 hints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP;
289 hints.ai_flags |= AI_NUMERICHOST;
338 s = local_listen(host, uport, hints);
416 s = remote_connect(host, port, hints);
548 remote_connect(const char *host, const char *port, struct addrinfo hints) argument
553 if ((error = getaddrinfo(host, port, &hints,
619 local_listen(char *host, char *port, struct addrinfo hints) argument
[all...]
/illumos-gate/usr/src/cmd/vntsd/
H A Dvntsd.c279 struct addrinfo hints; local
293 bzero(&hints, sizeof (hints));
294 hints.ai_family = PF_INET;
295 hints.ai_socktype = SOCK_STREAM;
297 err = getaddrinfo(host_name, NULL, &hints, &res);
/illumos-gate/usr/src/lib/libadutils/common/
H A Dsrv_query.c561 struct addrinfo hints; local
567 (void) memset(&hints, 0, sizeof (hints));
568 hints.ai_protocol = IPPROTO_TCP;
569 hints.ai_socktype = SOCK_STREAM;
582 err = getaddrinfo(cds->cds_ds.host, NULL, &hints, &ai);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dfake-addrinfo.h214 const struct addrinfo *hints,
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdliptun.c89 struct addrinfo *ai, hints; local
116 (void) memset(&hints, 0, sizeof (hints));
120 hints.ai_family = AF_INET;
123 hints.ai_family = AF_INET6;
129 if (getaddrinfo(params->iptun_param_laddr, NULL, &hints, &ai) !=
143 if (getaddrinfo(params->iptun_param_raddr, NULL, &hints, &ai) !=
/illumos-gate/usr/src/cmd/avs/dsstat/
H A Dsdbc_stats.c306 uint32_t hints; local
314 hints = *nhint;
315 hints &= (NSC_FORCED_WRTHRU | NSC_NO_FORCED_WRTHRU |
317 hints |= *dhint;
319 if (hints & NSC_NOCACHE)
324 if ((hints & NSC_FORCED_WRTHRU) || (hints & NSC_WRTHRU))
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetaddrinfo.c217 "Invalid value for hints", /*%< EAI_BADHINTS */
320 getaddrinfo(hostname, servname, hints, res)
322 const struct addrinfo *hints;
355 if (hints) {
356 /* error check for hints */
357 if (hints->ai_addrlen || hints->ai_canonname ||
358 hints->ai_addr || hints->ai_next)
360 if (hints
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drtquery.c521 struct addrinfo hints, *res; local
529 (void) memset(&hints, 0, sizeof (hints));
530 hints.ai_family = PF_INET;
531 hints.ai_socktype = SOCK_DGRAM;
532 if ((ret = getaddrinfo(host, "route", &hints, &res)) != 0) {
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkprop.c381 struct addrinfo hints, *ai, *aitop; local
387 memset(&hints, 0, sizeof(hints));
388 hints.ai_family = AF_UNSPEC; /* go for either IPv4 or v6 */
389 hints.ai_socktype = SOCK_STREAM;
397 if (getaddrinfo(host, serv_or_port, &hints, &aitop) != 0) {
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_cache.c420 nsc_node_hints(uint_t *hints) argument
422 return (_nsc_call_io(_I(nodehints), (blind_t)hints,
427 nsc_node_hints_set(uint_t hints) argument
429 return (_nsc_call_io(_I(nodehints), (blind_t)(unsigned long)hints,
/illumos-gate/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c133 struct addrinfo hints, *ai = NULL; local
205 memset(&hints, 0, sizeof(hints));
206 hints.ai_family = PF_UNSPEC;
207 hints.ai_socktype = SOCK_STREAM;
208 hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
211 if (getaddrinfo(hbuf, p, &hints, &ai) != 0) {
213 if (getaddrinfo(hbuf, &addr[i], &hints, &ai) != 0) {
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_init.c479 struct addrinfo hints, *ai; local
489 memset(&hints, 0, sizeof(hints));
490 hints.ai_family = PF_UNSPEC;
491 hints.ai_socktype = SOCK_DGRAM; /*dummy*/
492 hints.ai_flags = AI_NUMERICHOST;
494 if (getaddrinfo(cp, sbuf, &hints, &ai) == 0 &&

Completed in 101 milliseconds

12