Searched refs:ai (Results 1 - 25 of 81) sorted by relevance

1234

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dgethost.c19 struct addrinfo hints, *ai; local
37 error = getaddrinfo(name, NULL, &hints, &ai);
39 if ((error == 0) && (ai != NULL) && (ai->ai_addr != NULL)) {
40 switch (ai->ai_family)
44 ai->ai_addr)->sin_addr;
48 ai->ai_addr)->sin6_addr;
53 freeaddrinfo(ai);
57 if (ai != NULL)
58 freeaddrinfo(ai);
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_settid.c78 auditinfo_addr_t ai; local
81 if (getaudit_addr(&ai, sizeof (ai)) < 0) {
88 if (ai.ai_termid.at_port ||
89 ai.ai_termid.at_addr[0] ||
90 ai.ai_termid.at_addr[1] ||
91 ai.ai_termid.at_addr[2] ||
92 ai.ai_termid.at_addr[3]) {
96 ai.ai_termid.at_port = ((peer->sin6_port<<16) | (sock->sin6_port));
97 ai
110 auditinfo_t ai; local
[all...]
H A Dbsm.c63 getaudit(auditinfo_t *ai) argument
65 return (syscall(SYS_auditsys, BSM_GETAUDIT, ai));
69 getaudit_addr(auditinfo_addr_t *ai, int len) argument
71 return (syscall(SYS_auditsys, BSM_GETAUDIT_ADDR, ai, len));
76 setaudit(auditinfo_t *ai) argument
78 return (syscall(SYS_auditsys, BSM_SETAUDIT, ai));
83 setaudit_addr(auditinfo_addr_t *ai, int len) argument
85 return (syscall(SYS_auditsys, BSM_SETAUDIT_ADDR, ai, len));
H A Daudit_at.c54 auditinfo_addr_t ai; local
56 if (getaudit_addr(&ai, sizeof (ai))) {
70 r = audit_cron_setinfo(anc_name, &ai);
75 aug_save_auid(ai.ai_auid);
81 aug_save_asid(ai.ai_asid);
82 aug_save_tid_ex(ai.ai_termid.at_port, ai.ai_termid.at_addr,
83 ai.ai_termid.at_type);
H A Daudit_crontab.c63 auditinfo_addr_t ai; local
65 if (getaudit_addr(&ai, sizeof (ai))) {
97 r = audit_cron_setinfo(anc_name, &ai);
101 aug_save_auid(ai.ai_auid);
107 aug_save_asid(ai.ai_asid);
108 aug_save_tid_ex(ai.ai_termid.at_port, ai.ai_termid.at_addr,
109 ai.ai_termid.at_type);
H A Dgeneric.c166 struct addrinfo *ai; local
170 err = getaddrinfo(hostname, NULL, NULL, &ai);
174 switch (ai->ai_family) {
177 p = &((struct sockaddr_in *)ai->ai_addr)->sin_addr,
184 p = &((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr,
193 freeaddrinfo(ai);
271 auditinfo_addr_t ai; local
273 if (getaudit_addr(&ai, sizeof (ai)))
276 aug_save_auid(ai
[all...]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/
H A Dfknewvc.c67 fknewvc(struct smb_ctx *ctx, struct addrinfo *ai) argument
75 err = getnameinfo(ai->ai_addr, ai->ai_addrlen,
83 ai->ai_family, host, svc);
91 if (ai->ai_addrlen > sizeof (ssn->ssn_srvaddr))
94 bcopy(ai->ai_addr, &ssn->ssn_srvaddr, ai->ai_addrlen);
112 struct addrinfo *ai; local
120 for (ai = ctx->ct_addrinfo; ai; a
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnewvc.c65 newvc(struct smb_ctx *ctx, struct addrinfo *ai) argument
74 if (ai->ai_addrlen > sizeof (ssn->ssn_srvaddr))
77 bcopy(ai->ai_addr, &ssn->ssn_srvaddr, ai->ai_addrlen);
89 struct addrinfo *ai; local
108 for (ai = ctx->ct_addrinfo; ai; ai = ai->ai_next) {
110 switch (ai
[all...]
H A Dfindvc.c67 findvc(struct smb_ctx *ctx, struct addrinfo *ai) argument
76 if (ai->ai_addrlen > sizeof (ssn->ssn_srvaddr))
79 bcopy(ai->ai_addr, &ssn->ssn_srvaddr, ai->ai_addrlen);
94 struct addrinfo *ai; local
106 for (ai = ctx->ct_addrinfo; ai; ai = ai->ai_next) {
108 switch (ai
[all...]
H A Dgetaddr.c64 dump_addrinfo(struct addrinfo *ai) argument
68 if (ai == NULL) {
69 printf("ai==NULL\n");
73 for (i = 0; ai; i++, ai = ai->ai_next) {
74 printf("ai[%d]: af=%d, len=%d", i,
75 ai->ai_family, ai->ai_addrlen);
76 dump_sockaddr(ai
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Daddr_match.c50 const struct addrinfo *ai; local
57 for (ai = res; ai != NULL; ai = ai->ai_next) {
63 if (ai->ai_family != fromp->ss_family)
65 if (ai->ai_family == AF_INET) {
67 s4 = (struct sockaddr_in *)ai->ai_addr;
71 } else if (ai->ai_family == AF_INET6) {
73 s6 = (struct sockaddr_in6 *)ai
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dhostaddr.c43 struct addrinfo hints, *ai, *aip; local
57 r = getaddrinfo (name, 0, &hints, &ai);
60 r = getaddrinfo (name, 0, &hints, &ai);
70 for (i = 0, aip = ai; aip; aip = aip->ai_next) {
90 for (i = 0, aip = ai; aip; aip = aip->ai_next) {
131 if (ai)
132 freeaddrinfo(ai);
139 if (ai)
140 freeaddrinfo(ai);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ldap.c847 int ai = -2; local
922 for (ai = 0;
923 ai < ASNDESC->nbson && i < 32 &&
924 ASNDESC->son[ai].sondef &&
929 (ASNDESC->son[ai].sondef
931 != mytype[i]; ++ai);
932 if (ai < ASNDESC->nbson) {
934 ASNDESC->son[ai].sondef;
935 if (ASNDESC->son[ai].sonname != NULL) {
937 if (ASNDESC->son[ai]
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c319 system_freeaddrinfo (struct addrinfo *ai) argument
321 freeaddrinfo(ai);
440 static void debug_dump_addrinfos (const struct addrinfo *ai) argument
445 while (ai) {
446 fprintf(stderr, "%p...", ai);
447 fprintf(stderr, " socktype=%s", socktypename(ai->ai_socktype, buf));
448 fprintf(stderr, " ai_family=%s", familyname(ai->ai_family, buf));
449 if (ai->ai_family != ai->ai_addr->sa_family)
451 familyname(ai
666 struct addrinfo myhints = { 0 }, *ai, *ai2; local
809 fake_freeaddrinfo(struct addrinfo *ai) argument
1075 freeaddrinfo(struct addrinfo *ai) argument
1104 struct addrinfo *ai; local
1304 freeaddrinfo(struct addrinfo *ai) argument
1342 krb5int_freeaddrinfo(struct addrinfo *ai) argument
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetaddrinfo.c225 #define GET_AI(ai, afd, addr) \
228 (ai) = get_ai(pai, (afd), (addr)); \
229 if ((ai) == NULL) { \
235 #define GET_PORT(ai, serv) \
238 error = get_port((ai), (serv), 0); \
243 #define GET_CANONNAME(ai, str) \
246 error = get_canonname(pai, (ai), (str)); \
287 freeaddrinfo(ai)
288 struct addrinfo *ai;
293 next = ai
328 struct addrinfo ai, ai0, *afai = NULL; local
925 struct addrinfo *ai; local
950 struct addrinfo *ai; local
979 get_portmatch(const struct addrinfo *ai, const char *servname) argument
987 get_port(const struct addrinfo *ai, const char *servname, int matchonly) argument
[all...]
/illumos-gate/usr/src/lib/libadutils/common/
H A Dldap_ping.c521 struct addrinfo *ai; local
528 for (ai = send_cds->cds_ai; ai != NULL; ai = ai->ai_next) {
534 if (ai->ai_family == AF_INET6) {
535 (void) memcpy(&addr6, ai->ai_addr, sizeof (addr6));
536 } else if (ai->ai_family == AF_INET) {
538 (void *)ai->ai_addr;
577 struct addrinfo *ai; local
614 addrmatch(struct addrinfo *ai, struct sockaddr_in6 *sin6from) argument
645 save_ai(ad_disc_cds_t *cds, struct addrinfo *ai) argument
[all...]
H A Dsrv_query.c421 struct addrinfo *ai, *new_ai, *last_ai; local
428 for (ai = cds->cds_ai; ai != NULL; ai = ai->ai_next) {
429 last_ai = ai;
431 if (new_ai->ai_family == ai->ai_family &&
432 new_ai->ai_addrlen == ai->ai_addrlen &&
433 0 == memcmp(new_ai->ai_addr, ai->ai_addr,
434 ai
452 struct addrinfo *ai; local
562 struct addrinfo *ai; local
[all...]
/illumos-gate/usr/src/test/smbclient-tests/cmd/abort_conn/
H A Dabort_conn.c97 struct addrinfo hints, *res, *ai; local
141 for (ai = res; ai != NULL; ai = ai->ai_next) {
142 tcp_abort_connections(ai->ai_addr);
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_scsi.c64 scsi_stoh_long(ulong ai) argument
66 return (ntohl(ai));
H A Dghd_scsi.h43 ulong_t scsi_stoh_long(ulong_t ai);
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_scsi.h42 ulong_t scsi_stoh_long(ulong_t ai);
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/
H A Danonymous.c170 AnonymousInfo *ai; local
171 ai = (AnonymousInfo *)mDNSPlatformMemAllocate(sizeof(AnonymousInfo));
172 if (!ai)
176 mDNSPlatformMemZero(ai, sizeof(AnonymousInfo));
179 if (!CopyNSEC3ResourceRecord(ai, rr))
181 mDNSPlatformMemFree(ai);
184 return ai;
186 ai->salt = mDNSRandom(0xFFFFFFFF);
187 ai->AnonData = mDNSPlatformMemAllocate(len);
188 if (!ai
204 FreeAnonInfo(AnonymousInfo *ai) argument
217 AnonymousInfo *ai = *AnonInfo; local
574 FreeAnonInfo(AnonymousInfo *ai) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautomount.c87 struct autofs_args ai; local
203 ai.addr.buf = autofs_addr;
204 ai.addr.len = strlen(ai.addr.buf);
205 ai.addr.maxlen = ai.addr.len;
207 ai.mount_to = mount_timeout;
208 ai.rpc_to = AUTOFS_RPC_TIMEOUT;
296 ai.path = dir->dir_name;
297 ai
[all...]
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_filter.c107 int ai; local
111 &nvp, &ai, NULL) != 0)
116 (nvpair_value_match_regex(nvp, ai, value, value_regex, NULL) == 1))
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmemstat.c77 struct anoninfo ai; local
79 r = swapctl(SC_AINFO, &ai);
82 r = ai.ani_max - ai.ani_resv;

Completed in 225 milliseconds

1234