Home
last modified time | relevance | path

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

12345678910>>...18

/titanic_52/usr/src/lib/libwrap/
H A Deval.c8 * Routines for controlled evaluation of host names, user names, and so on.
43 * host name has the value STRING_PARANOID it means there was a name/address
64 char *eval_hostaddr(host) in eval_hostaddr() argument
65 struct host_info *host; in eval_hostaddr()
67 if (host->addr[0] == 0) {
68 strcpy(host->addr, unknown);
69 if (host->request->hostaddr != 0)
70 host->request->hostaddr(host);
72 return (host
77 eval_hostname(host) eval_hostname() argument
90 eval_hostinfo(host) eval_hostinfo() argument
133 char *host = eval_hostinfo(request->server); global() local
[all...]
H A Dsocket.c11 * it provides methods to map a transport address to a printable host name
14 * The result from the hostname lookup method is STRING_PARANOID when a host
15 * pretends to have someone elses name, or when a host name is available but
54 * Speed up DNS lookups by terminating the host name with a dot. Should be
95 * Look up the client host address. Hal R. Brand <BRAND@addvax.llnl.gov>
96 * suggested how to get the client host info in case of UDP connections:
136 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
152 sock_hostname(host) sock_hostname() argument
[all...]
H A Dhosts_access.c10 * host (or domain) names, NIS (host) netgroup names, IP addresses (or
104 /* hosts_access - host access control facility */
231 char *host; local
233 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
235 } else { /* daemon@host */
237 && host_match(host, request->server));
247 char *host; local
249 if ((host = split_at(tok + 1, '@')) == 0) { /* plain host */
259 host_match(tok,host) host_match() argument
[all...]
/titanic_52/usr/src/cmd/cmd-inet/usr.bin/
H A Dwhois.c80 static struct addrinfo *gethostinfo(char const *host, int exit_on_error);
88 const char *country, *host; in main() local
92 country = host = qnichost = NULL; in main()
97 host = ANICHOST; in main()
100 host = PNICHOST; in main()
103 host = ABUSEHOST; in main()
109 host = FNICHOST; in main()
112 host = GNICHOST; in main()
115 host = optarg; in main()
118 host in main()
219 gethostinfo(char const * host,int exit_on_error) gethostinfo() argument
266 char *host, *nhost, *p; whois() local
[all...]
/titanic_52/usr/src/cmd/tcpd/
H A Dscaffold.c48 struct hostent host; member
64 memset((char *) &hb->host, 0, sizeof(hb->host));
65 hb->host.h_addrtype = hp->h_addrtype;;
66 hb->host.h_length = hp->h_length;
67 hb->host.h_addr_list = hb->addr_list;
68 hb->host.h_addr_list[count] = 0;
69 data = (char *) (hb->host.h_addr_list + count + 1);
72 hb->host.h_addr_list[count] = data + hp->h_length * count;
73 memcpy(hb->host
80 find_inet_addr(host) find_inet_addr() argument
124 check_dns(host) check_dns() argument
[all...]
/titanic_52/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c288 nssout.nss.host.hent = buf6->result; in getipnodebyname()
289 nssout.nss.host.herrno_p = error_num; in getipnodebyname()
323 nssin.arg.nss.host.name = name; in getipnodebyname()
324 nssin.arg.nss.host.buf = buf4->buffer; in getipnodebyname()
325 nssin.arg.nss.host.buflen = buf4->buflen; in getipnodebyname()
326 nssout.nss.host.hent = buf4->result; in getipnodebyname()
327 nssout.nss.host.herrno_p = error_num; in getipnodebyname()
513 nssin.arg.nss.host.addr = (const char *)tmpbuf; in getipnodebyaddr()
515 nssin.arg.nss.host.addr = (const char *)addr6; in getipnodebyaddr()
517 nssin.arg.nss.host in getipnodebyaddr()
837 struct hostent *host; __mapv4tov6() local
1071 struct hostent *host; __mappedtov4() local
[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()
132 nssout.nss.host.herrno_p = h_errnop; 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 in gethostbyaddr_r()
[all...]
/titanic_52/usr/src/uts/common/klm/
H A Dnlm_service.c108 struct nlm_host *host,
127 struct nlm_host *host, rpcvers_t vers, short type) in nlm_init_flock() argument
155 fl->l_sysid = host->nh_sysid; in nlm_init_flock()
259 * hosts had a status change. The host can be either an
263 * state of host changes. An even number indicates that
264 * the host is down, while an odd number indicates that
265 * the host is up.
276 * the host this call applies to.
283 struct nlm_host *host; in nlm_do_notify1() local
292 host in nlm_do_notify1()
323 struct nlm_host *host; nlm_do_test() local
465 struct nlm_host *host = NULL; nlm_do_lock() local
680 nlm_block(nlm4_lockargs * lockargs,struct nlm_host * host,struct nlm_vhold * nvp,nlm_rpc_t * rpcp,struct flock64 * flp,nlm_testargs_cb grant_cb) nlm_block() argument
774 struct nlm_host *host; nlm_do_cancel() local
871 struct nlm_host *host; nlm_do_unlock() local
969 struct nlm_host *host; nlm_do_granted() local
1078 nlm_init_shrlock(struct shrlock * shr,nlm4_share * nshare,struct nlm_host * host) nlm_init_shrlock() argument
1128 struct nlm_host *host; nlm_do_share() local
1196 struct nlm_host *host; nlm_do_unshare() local
[all...]
/titanic_52/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]) {
99 if (index(namelist[addr[host]], tmpname[j]) == 0) {
100 namelist[addr[host]] = namelist[addr[host]] " " tmpname[j];
111 namelist[addr[host]]
[all...]
/titanic_52/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
87 sprintf(host, "%s.%s.%.*s", service, protocol, (int) realm->length, in krb5int_make_srv_query_realm()
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, sizeo in krb5int_make_srv_query_realm()
[all...]
H A Dhst_realm.c35 Figures out the Kerberos realm names for host, filling in a
38 If host is NULL, the local host's realms are determined.
40 If there are no known realms for the host, the filled-in pointer is set
52 * this implementation only provides one realm per host, using the same
55 * Given a fully-qualified domain-style primary host name,
56 * return the name of the Kerberos realm for the host.
68 * host names should be in the usual form (e.g. FOO.BAR.BAZ)
96 char host[MAXDNAME], *h; in krb5_try_realm_txt_rr() local
105 if (strlen (prefix) >= sizeof(host) in krb5_try_realm_txt_rr()
200 krb5_get_host_realm(krb5_context context,const char * host,char *** realmsp) krb5_get_host_realm() argument
346 char local_host[MAXDNAME+1], host[MAXDNAME+1]; krb5_get_fallback_host_realm() local
420 krb5int_clean_hostname(krb5_context context,const char * host,char * local_host,size_t lhsize) krb5int_clean_hostname() argument
[all...]
/titanic_52/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%:*}
106 test 0 != $verbose && echo "$command: prot=$prot host=$host por
[all...]
/titanic_52/usr/src/lib/print/libpapi-common/common/
H A Duri.c41 * scheme://[[user[:password]@]host[:port]]/path[[#fragment]|[?query]]
70 char *end = NULL, *user = NULL, *host = NULL, *path = NULL; in uri_from_string() local
80 for (host = string; host < end; host ++) in uri_from_string()
81 if (*host == '@') { in uri_from_string()
82 /* string to host is the user part */ in uri_from_string()
83 u->user_part = strndup(string, host-string); in uri_from_string()
84 /* host+1 to end is the host par in uri_from_string()
[all...]
/titanic_52/usr/src/lib/krb5/kadm5/
H A Dkadm_host_srv_names.c146 * Get the host base service name for the admin principal. Returns
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()
162 name = malloc(strlen(KADM5_ADMIN_HOST_SERVICE)+ strlen(host) + 2); in kadm5_get_adm_host_srv_name()
164 free(host); in kadm5_get_adm_host_srv_name()
167 sprintf(name, "%s@%s", KADM5_ADMIN_HOST_SERVICE, host); in kadm5_get_adm_host_srv_name()
168 free(host); in kadm5_get_adm_host_srv_name()
175 * Get the host base service name for the changepw principal. Returns
185 char *host; in kadm5_get_cpw_host_srv_name() local
191 if (ret = kadm5_get_kpasswd(context, realm, &host)) { in kadm5_get_cpw_host_srv_name()
218 char *host; kadm5_get_kiprop_host_srv_name() local
[all...]
/titanic_52/usr/src/cmd/fs.d/nfs/mountd/
H A Drmtab.c108 mntlist_contains(char *host, char *path) in mntlist_contains() argument
112 m.m_host = host; in mntlist_contains()
126 mntlist_insert(char *host, char *path) in mntlist_insert() argument
128 if (!mntlist_contains(host, path)) { in mntlist_insert()
133 m->m_host = exstrdup(host); in mntlist_insert()
135 m->m_pos = rmtab_insert(host, path); in mntlist_insert()
141 mntlist_new(char *host, char *path) in mntlist_new() argument
144 mntlist_insert(host, path); in mntlist_new()
153 mntlist_delete(char *host, char *path) in mntlist_delete() argument
157 mm.m_host = host; in mntlist_delete()
182 mntlist_delete_all(char * host) mntlist_delete_all() argument
353 char *host; rmtab_parse() local
483 rmtab_insert(char * host,char * path) rmtab_insert() argument
[all...]
/titanic_52/usr/src/cmd/sendmail/src/
H A Ddomain.c86 ** GETFALLBACKMXRR -- get MX resource records for fallback MX host.
95 ** host -- the name of the fallback MX host.
109 getfallbackmxrr(host) in getfallbackmxrr() argument
110 char *host; in getfallbackmxrr()
118 if (host == NULL || *host == '\0')
123 if (host[0] == '[')
125 fbhosts[0] = host;
135 NumFallbackMXHosts = getmxrr(host, fbhost
207 getmxrr(host,mxhosts,mxprefs,droplocalhost,rcode,tryfallback,pttl) getmxrr() argument
610 mxrand(host) mxrand() argument
787 dns_getcanonname(host,hbsize,trymx,statp,pttl) dns_getcanonname() argument
[all...]
/titanic_52/usr/src/cmd/tip/
H A Dremote.c17 * Attributes to be gleened from remote host description
33 getremcap(char *host) in getremcap() argument
41 if ((stat = rgetent(tbuf, host, sizeof (tbuf))) <= 0) { in getremcap()
43 host[0] == '/' && access(DV = host, R_OK | W_OK) == 0) { in getremcap()
48 if (host[0] == '/') in getremcap()
51 HO = host; in getremcap()
65 "tip: unknown host %s\n" : in getremcap()
66 "tip: can't open host description file\n", host); in getremcap()
150 getremote(char * host) getremote() argument
[all...]
/titanic_52/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();
208 host
[all...]
/titanic_52/usr/src/uts/common/inet/ilb/
H A Dilb_impl.h93 #define ILB_S_KSTAT(host, x) \ argument
96 (host)); \
97 ((host)->iser_kstat.x.value.ui64++); \
99 #define ILB_S_KSTAT_UPDATE(host, x, y) \ argument
102 (host)); \
103 ((host)->iser_kstat.x.value.ui64 += (y)); \
121 in_port_t iser_min_port; /* In host byte order */
141 #define ILB_SERVER_REFHOLD(host) \ argument
143 mutex_enter(&(host)->iser_lock); \
144 (host)
149 ILB_SERVER_REFRELE(host) global() argument
[all...]
/titanic_52/usr/src/cmd/mailx/
H A Dhostname.c47 * Code to figure out what host we are on.
57 char host[64]; variable
60 * Initialize the network name of the current host.
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()
82 gettext("Cannot find empty slot for dynamic host entry\n")); in inithost()
85 np->nt_machine = host; in inithost()
[all...]
/titanic_52/usr/src/lib/librpcsvc/common/
H A Drusers_simple.c38 rusers3(host, uap) in rusers3() argument
39 char *host; in rusers3()
44 if (rpc_call(host, RUSERSPROG, RUSERSVERS_3, RUSERSPROC_NAMES,
53 if (rusers(host, &up) != 0)
109 rnusers(host) in rnusers() argument
110 char *host; in rnusers()
114 if (rpc_call(host, RUSERSPROG, RUSERSVERS_3, RUSERSPROC_NUM,
117 if (rpc_call(host, RUSERSPROG, RUSERSVERS_IDLE, RUSERSPROC_NUM,
126 rusers(host, up) in rusers() argument
127 char *host; in rusers()
[all...]
/titanic_52/usr/src/cmd/cmd-inet/usr.sbin/
H A Darp.c224 char *host = argv[0], *eaddr = argv[1]; in set() local
231 sin->sin_addr.s_addr = inet_addr(host); in set()
233 hp = gethostbyname(host); in set()
235 (void) fprintf(stderr, "arp: %s: unknown host\n", in set()
236 host); in set()
286 perror(host); in set()
297 get(char *host) in get() argument
309 sin->sin_addr.s_addr = inet_addr(host); in get()
311 hp = gethostbyname(host); in get()
313 (void) fprintf(stderr, "arp: %s: unknown host\ in get()
365 delete(char * host) delete() argument
[all...]
/titanic_52/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c28 * httpAddrLoad() - Load a host entry address into an HTTP address.
90 * 'httpAddrLoad()' - Load a host entry address into an HTTP address.
94 httpAddrLoad(const struct hostent *host, /* I - Host entry */ in httpAddrLoad() argument
96 int n, /* I - Index into host entry */ in httpAddrLoad()
100 if (host->h_addrtype == AF_INET6) in httpAddrLoad()
108 memcpy((char *)&(addr->ipv6.sin6_addr), host->h_addr_list[n], in httpAddrLoad()
109 host->h_length); in httpAddrLoad()
115 if (host->h_addrtype == AF_LOCAL) in httpAddrLoad()
118 strlcpy(addr->un.sun_path, host->h_addr_list[n], sizeof(addr->un.sun_path)); in httpAddrLoad()
122 if (host in httpAddrLoad()
180 struct hostent *host; /* Host from name service */ httpAddrLookup() local
[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[ in httpSeparate2()
[all...]
/titanic_52/usr/src/lib/libresolv/
H A Dres_gethost.c52 static struct hostent host; variable
115 host.h_name = bp;
131 host.h_aliases = host_aliases;
134 host.h_addr_list = h_addr_ptrs;
165 host.h_name = bp;
166 return (&host);
178 if (n != host.h_length) {
187 host.h_length = n;
189 host.h_addrtype = (class == C_IN) ? AF_INET : AF_UNSPEC;
191 host
[all...]

12345678910>>...18