/illumos-gate/usr/src/lib/libwrap/ |
H A D | eval.c | 63 char *eval_hostaddr(host) in eval_hostaddr() argument 64 struct host_info *host; in eval_hostaddr() 69 host->request->hostaddr(host); 71 return (host->addr); 76 char *eval_hostname(host) in eval_hostname() argument 77 struct host_info *host; in eval_hostname() 82 host->request->hostname(host); 84 return (host->name); 89 char *eval_hostinfo(host) in eval_hostinfo() argument 90 struct host_info *host; in eval_hostinfo() [all …]
|
H A D | socket.c | 134 void sock_hostaddr(host) in sock_hostaddr() argument 135 struct host_info *host; in sock_hostaddr() 137 struct sockaddr_gen *sin = host->sin; 142 (void) inet_ntop(SGFAM(sin), SGADDRP(sin), host->addr, sizeof(host->addr)); 144 STRN_CPY(host->addr, inet_ntoa(sin->sg_sin.sin_addr), sizeof(host->addr)); 150 void sock_hostname(host) in sock_hostname() argument 151 struct host_info *host; in sock_hostname() 153 struct sockaddr_gen *sin = host->sin; 169 STRN_CPY(host->name, hp->h_name, sizeof(host->name)); 192 host->name); [all …]
|
H A D | hosts_access.c | 229 char *host; local 245 char *host; local 257 static int host_match(tok, host) in host_match() argument 259 struct host_info *host; 283 char *name = eval_hostname(host); 286 char *name = eval_hostname(host); 300 if (host->sin == NULL) { 301 if (host->addr == NULL || 307 if (SGFAM(host->sin) != AF_INET6) 309 hip = &host->sin->sg_sin6.sin6_addr; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | whois.c | 97 host = ANICHOST; in main() 100 host = PNICHOST; in main() 109 host = FNICHOST; in main() 112 host = GNICHOST; in main() 115 host = optarg; in main() 118 host = INICHOST; in main() 121 host = IANAHOST; in main() 124 host = KNICHOST; in main() 161 host = NICHOST; in main() 313 (int)(buf + len - host), host); in whois() [all …]
|
/illumos-gate/usr/src/cmd/tcpd/ |
H A D | scaffold.c | 48 struct hostent host; member 64 memset((char *) &hb->host, 0, sizeof(hb->host)); 66 hb->host.h_length = hp->h_length; 68 hb->host.h_addr_list[count] = 0; 75 return (&hb->host); 80 struct hostent *find_inet_addr(host) in find_inet_addr() argument 81 char *host; in find_inet_addr() 103 if (NOT_INADDR(host) == 0) { 115 if (STR_NE(host, hp->h_name)) { 124 int check_dns(host) in check_dns() argument [all …]
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 837 struct hostent *host; in __mapv4tov6() local 888 host->h_aliases = host->h_addr_list + count + 1; in __mapv4tov6() 917 host->h_name = buff_locp; in __mapv4tov6() 938 return (host); in __mapv4tov6() 991 host->h_aliases = host->h_addr_list + count + 1; in __mapv4tov6() 997 host->h_name = buff_locp; in __mapv4tov6() 1032 return (host); in __mapv4tov6() 1071 struct hostent *host; in __mappedtov4() local 1130 host->h_aliases = host->h_addr_list + count + 1; in __mappedtov4() 1138 host->h_name = buff_locp; in __mappedtov4() [all …]
|
H A D | gethostbyname_r.c | 125 nssin.arg.nss.host.name = nam; in gethostbyname_r() 126 nssin.arg.nss.host.buf = buffer; in gethostbyname_r() 127 nssin.arg.nss.host.buflen = buflen; in gethostbyname_r() 129 nssout.nss.host.hent = result; in gethostbyname_r() 141 return (nssout.nss.host.hent); in gethostbyname_r() 168 nssin.arg.nss.host.addr = addr; in gethostbyaddr_r() 169 nssin.arg.nss.host.len = length; in gethostbyaddr_r() 170 nssin.arg.nss.host.type = type; in gethostbyaddr_r() 171 nssin.arg.nss.host.buf = buffer; in gethostbyaddr_r() 174 nssout.nss.host.hent = result; in gethostbyaddr_r() [all …]
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 109 struct nlm_host *host, 284 struct nlm_host *host; in nlm_do_notify1() local 294 if (host == NULL) in nlm_do_notify1() 329 struct nlm_host *host; in nlm_do_test() local 348 if (host == NULL) { in nlm_do_test() 499 if (host == NULL) { in nlm_do_lock() 858 if (host == NULL) { in nlm_do_cancel() 964 if (host == NULL) in nlm_do_unlock() 1050 if (host == NULL) in nlm_do_granted() 1212 if (host == NULL) { in nlm_do_share() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | multi.awk.sh | 85 for (host in addr) { 86 if (index(addr[host], ",") == 0) 88 numaddr = split(addr[host], tmpaddr, ","); 92 if (namelist[addr[host]] == "") { 93 namelist[addr[host]] = tmpname[j]; 96 if (namelist[addr[host]] == tmpname[j]) { 100 namelist[addr[host]] = namelist[addr[host]] " " tmpname[j]; 111 namelist[addr[host]] = namelist[addr[host]] " " tmpname[j]; 120 for (host in addr) { 121 if (index(addr[host], ",")) { [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnssrv.c | 44 free(p->host); in krb5int_free_srv_dns_data() 63 char host[MAXDNAME], *h; in krb5int_make_srv_query_realm() local 99 h = host + strlen (host); in krb5int_make_srv_query_realm() 100 if ((h[-1] != '.') && ((h - host + 1) < sizeof(host))) in krb5int_make_srv_query_realm() 104 fprintf (stderr, "sending DNS SRV query for %s\n", host); in krb5int_make_srv_query_realm() 107 size = krb5int_dns_init(&ds, host, C_IN, T_SRV); in krb5int_make_srv_query_realm() 126 nlen = krb5int_dns_expand(ds, p, host, sizeof(host)); in krb5int_make_srv_query_realm() 145 if (strlen(host) + 2 < sizeof(host)) in krb5int_make_srv_query_realm() 146 strcat(host, "."); in krb5int_make_srv_query_realm() 147 srv->host = strdup(host); in krb5int_make_srv_query_realm() [all …]
|
H A D | hst_realm.c | 96 char host[MAXDNAME], *h; in krb5_try_realm_txt_rr() local 105 if (strlen (prefix) >= sizeof(host)-1) in krb5_try_realm_txt_rr() 107 strcpy(host,prefix); in krb5_try_realm_txt_rr() 124 h = host + strlen (host); in krb5_try_realm_txt_rr() 125 if ((h > host) && (h[-1] != '.') && ((h - host + 1) < sizeof(host))) in krb5_try_realm_txt_rr() 350 host[hdata->length]=0; in krb5_get_fallback_host_realm() 430 if (host) { in krb5int_clean_hostname() 434 if (strspn(host, "01234567890.") == strlen(host)) { in krb5int_clean_hostname() 443 for (p = host; *p; p++) in krb5int_clean_hostname() 449 if (strchr(host, ':')) in krb5int_clean_hostname() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | hurl.sh | 95 host=$url 96 path=/${host#*/} 97 host=${host%%/*} 98 case $host in 100 port=${host##*:} 101 host=${host%:*} 110 then test 0 != $verbose && echo "$command: using /dev/tcp/$host/$port" >&2 112 Host: $host 117 then echo "$command: $host: write error" 122 then echo "$command: $host: read error" >&2 [all …]
|
/illumos-gate/usr/src/lib/print/libpapi-common/common/ |
H A D | uri.c | 80 for (host = string; host < end; host ++) in uri_from_string() 81 if (*host == '@') { in uri_from_string() 86 end - (host+1)); in uri_from_string() 88 host++; in uri_from_string() 103 host = string; in uri_from_string() 105 if (host != NULL) { in uri_from_string() 116 u->host = strndup(host, port - host); in uri_from_string() 191 (uri->host ? uri->host : ""), in uri_to_string() 220 if (uri->host != NULL) in uri_free() 221 free(uri->host); in uri_free() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/ |
H A D | kadm_host_srv_names.c | 156 char *host; in kadm5_get_adm_host_srv_name() local 159 if (ret = kadm5_get_master(context, realm, &host)) in kadm5_get_adm_host_srv_name() 164 free(host); in kadm5_get_adm_host_srv_name() 168 free(host); in kadm5_get_adm_host_srv_name() 185 char *host; in kadm5_get_cpw_host_srv_name() local 198 free(host); in kadm5_get_cpw_host_srv_name() 202 free(host); in kadm5_get_cpw_host_srv_name() 218 char *host; in kadm5_get_kiprop_host_srv_name() local 221 if (ret = kadm5_get_master(context, realm, &host)) in kadm5_get_kiprop_host_srv_name() 226 free(host); in kadm5_get_kiprop_host_srv_name() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | rmtab.c | 112 m.m_host = host; in mntlist_contains() 133 m->m_host = exstrdup(host); in mntlist_insert() 144 mntlist_insert(host, path); in mntlist_new() 157 mm.m_host = host; in mntlist_delete() 182 mntlist_delete_all(char *host) in mntlist_delete_all() argument 353 char *host; in rmtab_parse() local 362 host = s; in rmtab_parse() 377 host = s; in rmtab_parse() 394 if (*host && *path) in rmtab_parse() 395 mntlist_insert(host, path); in rmtab_parse() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | domain.c | 108 char *host; in getfallbackmxrr() 116 if (host == NULL || *host == '\0') 121 if (host[0] == '[') 123 fbhosts[0] = host; 206 char *host; in getmxrr() 378 host); 608 mxrand(host) in mxrand() argument 786 char *host; in dns_getcanonname() 893 host, *dp, 1068 host); [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_bparam.c | 180 struct in_addr host; in sum_address() local 188 host.S_un.S_un_b.s_b1 = getxdr_char(); in sum_address() 189 host.S_un.S_un_b.s_b2 = getxdr_char(); in sum_address() 190 host.S_un.S_un_b.s_b3 = getxdr_char(); in sum_address() 191 host.S_un.S_un_b.s_b4 = getxdr_char(); in sum_address() 193 return (inet_ntoa(host)); in sum_address() 200 struct in_addr host; local 206 host.S_un.S_un_b.s_b1 = getxdr_char(); 207 host.S_un.S_un_b.s_b2 = getxdr_char(); 214 inet_ntoa(host), [all …]
|
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_impl.h | 93 #define ILB_S_KSTAT(host, x) \ argument 96 (host)); \ 102 (host)); \ 141 #define ILB_SERVER_REFHOLD(host) \ argument 143 mutex_enter(&(host)->iser_lock); \ 144 (host)->iser_refcnt++; \ 146 mutex_exit(&(host)->iser_lock); \ 149 #define ILB_SERVER_REFRELE(host) \ argument 152 (host)->iser_refcnt--; \ 153 if ((host)->iser_refcnt == 1) \ [all …]
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | remote.c | 61 getremcap(char *host) in getremcap() argument 69 if ((stat = rgetent(tbuf, host, sizeof (tbuf))) <= 0) { in getremcap() 71 host[0] == '/' && access(DV = host, R_OK | W_OK) == 0) { in getremcap() 76 if (host[0] == '/') in getremcap() 79 HO = host; in getremcap() 94 "tip: can't open host description file\n", host); in getremcap() 110 (void) fprintf(stderr, "%s: missing device spec\n", host); in getremcap() 127 HO = host; in getremcap() 178 getremote(char *host) in getremote() argument 185 if (host == NOSTR && (host = getenv("HOST")) == NOSTR) { in getremote() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | hostname.c | 55 char host[64]; variable 69 nstrcpy(host, sizeof (host), fp); in inithost() 72 nstrcpy(host, sizeof (host), name.nodename); in inithost() 74 snprintf(domain, sizeof (domain), "%s%s", host, maildomain()); in inithost() 83 np->nt_machine = host; in inithost() 86 if (debug) fprintf(stderr, "host '%s', domain '%s'\n", host, domain); in inithost()
|
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | rusers_simple.c | 41 rusers3(host, uap) in rusers3() argument 42 char *host; in rusers3() 47 if (rpc_call(host, RUSERSPROG, RUSERSVERS_3, RUSERSPROC_NAMES, 56 if (rusers(host, &up) != 0) 112 rnusers(host) in rnusers() argument 113 char *host; in rnusers() 117 if (rpc_call(host, RUSERSPROG, RUSERSVERS_3, RUSERSPROC_NUM, 120 if (rpc_call(host, RUSERSPROG, RUSERSVERS_IDLE, RUSERSPROC_NUM, 129 rusers(host, up) in rusers() argument 130 char *host; in rusers() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | arp.c | 234 hp = gethostbyname(host); in set() 237 host); in set() 287 perror(host); in set() 298 get(char *host) in get() argument 312 hp = gethostbyname(host); in get() 315 host); in get() 330 host, inet_ntoa(sin->sin_addr)); in get() 340 (void) printf("%s (%s) at %s", host, in get() 366 delete(char *host) in delete() argument 378 hp = gethostbyname(host); in delete() [all …]
|
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http-addr.c | 98 if (host->h_addrtype == AF_INET6) in httpAddrLoad() 107 host->h_length); in httpAddrLoad() 113 if (host->h_addrtype == AF_LOCAL) in httpAddrLoad() 120 if (host->h_addrtype == AF_INET) in httpAddrLoad() 129 host->h_length); in httpAddrLoad() 178 struct hostent *host; /* Host from name service */ in httpAddrLookup() local 186 host = gethostbyaddr(ADDR_CAST &(addr->ipv6.sin6_addr), in httpAddrLookup() 199 host = gethostbyaddr(ADDR_CAST &(addr->ipv4.sin_addr), in httpAddrLookup() 202 host = NULL; in httpAddrLookup() 204 if (host == NULL) in httpAddrLookup() [all …]
|
H A D | http-support.c | 67 char *host, /* O - Hostname [1024] */ in httpSeparate() argument 71 httpSeparate2(uri, method, 32, username, HTTP_MAX_URI, host, HTTP_MAX_URI, in httpSeparate() 87 char *host, /* O - Hostname */ in httpSeparate2() argument 102 if (uri == NULL || method == NULL || username == NULL || host == NULL || in httpSeparate2() 124 uri = http_copy_decode(host, uri, hostlen, ":"); in httpSeparate2() 134 if (strchr(host, '.') != NULL || strchr(host, '/') != NULL || *uri == '\0') in httpSeparate2() 136 if ((ptr = strchr(host, '/')) != NULL) in httpSeparate2() 163 strlcpy(method, host, methodlen); in httpSeparate2() 175 host[0] = '\0'; in httpSeparate2() 204 uri = http_copy_decode(host, uri, hostlen, ":/"); in httpSeparate2()
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_gethost.c | 52 static struct hostent host; variable 115 host.h_name = bp; 165 host.h_name = bp; 166 return (&host); 178 if (n != host.h_length) { 187 host.h_length = n; 191 host.h_name = bp; 221 return (&host); 397 host.h_addr = hostaddr; in _gethtent() 403 host.h_name = cp; in _gethtent() [all …]
|