Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/illumos-gate/usr/src/lib/libwrap/
H A Deval.c64 char *eval_hostaddr(host) in eval_hostaddr() argument
65 struct host_info *host; in eval_hostaddr()
70 host->request->hostaddr(host);
72 return (host->addr);
77 char *eval_hostname(host) in eval_hostname() argument
78 struct host_info *host; in eval_hostname()
83 host->request->hostname(host);
85 return (host->name);
90 char *eval_hostinfo(host) in eval_hostinfo() argument
91 struct host_info *host; in eval_hostinfo()
[all …]
H A Dsocket.c136 void sock_hostaddr(host) in sock_hostaddr() argument
137 struct host_info *host; in sock_hostaddr()
139 struct sockaddr_gen *sin = host->sin;
144 (void) inet_ntop(SGFAM(sin), SGADDRP(sin), host->addr, sizeof(host->addr));
146 STRN_CPY(host->addr, inet_ntoa(sin->sg_sin.sin_addr), sizeof(host->addr));
152 void sock_hostname(host) in sock_hostname() argument
153 struct host_info *host; in sock_hostname()
155 struct sockaddr_gen *sin = host->sin;
171 STRN_CPY(host->name, hp->h_name, sizeof(host->name));
194 host->name);
[all …]
H A Dhosts_access.c231 char *host; local
247 char *host; local
259 static int host_match(tok, host) in host_match() argument
261 struct host_info *host;
285 char *name = eval_hostname(host);
288 char *name = eval_hostname(host);
302 if (host->sin == NULL) {
303 if (host->addr == NULL ||
309 if (SGFAM(host->sin) != AF_INET6)
311 hip = &host->sin->sg_sin6.sin6_addr;
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dwhois.c97 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 Dscaffold.c48 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 Dgetipnodeby.c837 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 Dgethostbyname_r.c127 nssin.arg.nss.host.name = nam; in gethostbyname_r()
128 nssin.arg.nss.host.buf = buffer; in gethostbyname_r()
129 nssin.arg.nss.host.buflen = buflen; in gethostbyname_r()
131 nssout.nss.host.hent = result; in gethostbyname_r()
143 return (nssout.nss.host.hent); in gethostbyname_r()
170 nssin.arg.nss.host.addr = addr; in gethostbyaddr_r()
171 nssin.arg.nss.host.len = length; in gethostbyaddr_r()
172 nssin.arg.nss.host.type = type; in gethostbyaddr_r()
173 nssin.arg.nss.host.buf = buffer; in gethostbyaddr_r()
176 nssout.nss.host.hent = result; in gethostbyaddr_r()
[all …]
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_service.c109 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 Dmulti.awk.sh85 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 Ddnssrv.c44 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 Dhst_realm.c96 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 Dhurl.sh95 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 Duri.c80 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 Dkadm_host_srv_names.c156 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 Drmtab.c112 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 Ddomain.c108 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 Dsnoop_bparam.c180 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 Dilb_impl.h93 #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 Dremote.c61 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 Dhostname.c57 char host[64]; variable
71 nstrcpy(host, sizeof (host), fp); in inithost()
74 nstrcpy(host, sizeof (host), name.nodename); in inithost()
76 snprintf(domain, sizeof (domain), "%s%s", host, maildomain()); in inithost()
85 np->nt_machine = host; in inithost()
88 if (debug) fprintf(stderr, "host '%s', domain '%s'\n", host, domain); in inithost()
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Drusers_simple.c41 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 Darp.c234 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 Dhttp-addr.c100 if (host->h_addrtype == AF_INET6) in httpAddrLoad()
109 host->h_length); in httpAddrLoad()
115 if (host->h_addrtype == AF_LOCAL) in httpAddrLoad()
122 if (host->h_addrtype == AF_INET) in httpAddrLoad()
131 host->h_length); in httpAddrLoad()
180 struct hostent *host; /* Host from name service */ in httpAddrLookup() local
188 host = gethostbyaddr(ADDR_CAST &(addr->ipv6.sin6_addr), in httpAddrLookup()
201 host = gethostbyaddr(ADDR_CAST &(addr->ipv4.sin_addr), in httpAddrLookup()
204 host = NULL; in httpAddrLookup()
206 if (host == NULL) in httpAddrLookup()
[all …]
H A Dhttp-support.c69 char *host, /* O - Hostname [1024] */ in httpSeparate() argument
73 httpSeparate2(uri, method, 32, username, HTTP_MAX_URI, host, HTTP_MAX_URI, in httpSeparate()
89 char *host, /* O - Hostname */ in httpSeparate2() argument
104 if (uri == NULL || method == NULL || username == NULL || host == NULL || in httpSeparate2()
126 uri = http_copy_decode(host, uri, hostlen, ":"); in httpSeparate2()
136 if (strchr(host, '.') != NULL || strchr(host, '/') != NULL || *uri == '\0') in httpSeparate2()
138 if ((ptr = strchr(host, '/')) != NULL) in httpSeparate2()
165 strlcpy(method, host, methodlen); in httpSeparate2()
177 host[0] = '\0'; in httpSeparate2()
206 uri = http_copy_decode(host, uri, hostlen, ":/"); in httpSeparate2()
/illumos-gate/usr/src/lib/libresolv/
H A Dres_gethost.c52 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 …]

12345678910>>...17