Home
last modified time | relevance | path

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

12345678910>>...19

/titanic_41/usr/src/lib/libwrap/
H A Deval.c64 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->addr);
77 char *eval_hostname(host) in eval_hostname() argument
78 struct host_info *host; in eval_hostname()
80 if (host->name[0] == 0) {
[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));
186 if ((hp = tcpd_gethostbyname(host->name, SGFAM(sin))) == 0) {
[all …]
H A Dhosts_access.c231 char *host; local
233 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
237 && host_match(host, request->server));
247 char *host; local
249 if ((host = split_at(tok + 1, '@')) == 0) { /* plain host */
252 return (host_match(host, request->client)
259 static int host_match(tok, host) in host_match() argument
261 struct host_info *host;
279 return (innetgr(tok + 1, eval_hostname(host), (char *) 0, mydomain));
285 char *name = eval_hostname(host);
[all …]
/titanic_41/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 = INICHOST; in main()
[all …]
/titanic_41/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c266 nssout.nss.host.hent = buf6->result; in getipnodebyname()
267 nssout.nss.host.herrno_p = error_num; in getipnodebyname()
301 nssin.arg.nss.host.name = name; in getipnodebyname()
302 nssin.arg.nss.host.buf = buf4->buffer; in getipnodebyname()
303 nssin.arg.nss.host.buflen = buf4->buflen; in getipnodebyname()
304 nssout.nss.host.hent = buf4->result; in getipnodebyname()
305 nssout.nss.host.herrno_p = error_num; in getipnodebyname()
491 nssin.arg.nss.host.addr = (const char *)tmpbuf; in getipnodebyaddr()
493 nssin.arg.nss.host.addr = (const char *)addr6; in getipnodebyaddr()
495 nssin.arg.nss.host.len = sizeof (struct in6_addr); in getipnodebyaddr()
[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.buf = buffer; in gethostbyaddr_r()
[all …]
/titanic_41/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.h_addr_list[count], addr, hp->h_length);
75 return (&hb->host);
[all …]
/titanic_41/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]] = namelist[addr[host]] " " tmpname[j];
120 for (host in addr) {
[all …]
/titanic_41/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()
283 struct nlm_host *host; in nlm_do_notify1() local
292 host = nlm_host_find_by_sysid(g, (sysid_t)sysid); in nlm_do_notify1()
293 if (host == NULL) in nlm_do_notify1()
296 nlm_host_notify_server(host, argp->state); in nlm_do_notify1()
297 nlm_host_notify_client(host, argp->state); in nlm_do_notify1()
298 nlm_host_release(g, host); in nlm_do_notify1()
323 struct nlm_host *host; in nlm_do_test() local
[all …]
/titanic_41/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, 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()
[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()
112 sprintf(host,"%s.%s", prefix, name); 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()
128 ret = krb5int_dns_init(&ds, host, C_IN, T_TXT); in krb5_try_realm_txt_rr()
200 krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp) in krb5_get_host_realm() argument
208 printf("get_host_realm(host:%s) called\n",host); in krb5_get_host_realm()
211 krb5int_clean_hostname(context, host, local_host, sizeof local_host); in krb5_get_host_realm()
[all …]
/titanic_41/usr/src/lib/print/libpapi-common/common/
H A Duri.c70 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()
83 u->user_part = strndup(string, host-string); in uri_from_string()
85 u->host_part = strndup(host + 1, in uri_from_string()
86 end - (host+1)); in uri_from_string()
88 host++; in uri_from_string()
95 for (password = user; (password < host - 1); password++) in uri_from_string()
98 host - password - 2); in uri_from_string()
103 host = string; in uri_from_string()
[all …]
/titanic_41/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()
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()
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()
192 if (ret = kadm5_get_master(context, realm, &host)) in kadm5_get_cpw_host_srv_name()
196 name = malloc(strlen(KADM5_CHANGEPW_HOST_SERVICE) + strlen(host) + 2); in kadm5_get_cpw_host_srv_name()
[all …]
/titanic_41/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()
[all …]
/titanic_41/usr/src/cmd/ssh/ssh/
H A Dsshconnect.c67 ssh_proxy_connect(const char *host, u_short port, const char *proxy_command) in ssh_proxy_connect() argument
103 buffer_append(&command, host, strlen(host)); in ssh_proxy_connect()
321 ssh_connect(const char *host, struct sockaddr_storage * hostaddr, in ssh_connect() argument
350 return ssh_proxy_connect(host, port, proxy_command); in ssh_connect()
358 if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) in ssh_connect()
359 fatal("%s: %.100s: %s", __progname, host, in ssh_connect()
383 host, ntop, strport); in ssh_connect()
425 host, strport, strerror(errno)); in ssh_connect()
602 check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, int in check_host_key() argument
670 (local || strcmp(host, ip) == 0 || options.proxy_command != NULL)) in check_host_key()
[all …]
/titanic_41/usr/src/cmd/sendmail/src/
H A Ddomain.c109 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, fbhosts, NULL, false,
207 getmxrr(host, mxhosts, mxprefs, droplocalhost, rcode, tryfallback, pttl) in getmxrr() argument
208 char *host; in getmxrr()
237 host, droplocalhost);
241 if (*host == '\0')
[all …]
/titanic_41/usr/src/cmd/tip/
H A Dremote.c33 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()
66 "tip: can't open host description file\n", host); in getremcap()
82 (void) fprintf(stderr, "%s: missing device spec\n", host); in getremcap()
88 (void) fprintf(stderr, "%s: missing phone number\n", host); in getremcap()
99 HO = host; in getremcap()
150 getremote(char *host) in getremote() argument
[all …]
/titanic_41/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.S_un.S_un_b.s_b3 = getxdr_char();
[all …]
/titanic_41/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)); \
141 #define ILB_SERVER_REFHOLD(host) \ argument
143 mutex_enter(&(host)->iser_lock); \
144 (host)->iser_refcnt++; \
145 ASSERT((host)->iser_refcnt != 1); \
[all …]
/titanic_41/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()
/titanic_41/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_41/usr/src/cmd/ssh/sshd/
H A Dauth-sia.c55 const char *host; in auth_sia_password() local
58 host = get_canonical_hostname(options.verify_reverse_mapping); in auth_sia_password()
63 if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, NULL, 0, in auth_sia_password()
68 error("Couldn't authenticate %s from %s", user, host); in auth_sia_password()
84 const char *host; in session_setup_sia() local
86 host = get_canonical_hostname (options.verify_reverse_mapping); in session_setup_sia()
88 if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, tty, 0, in session_setup_sia()
105 host); in session_setup_sia()
114 fatal("Couldn't launch session for %s from %s", user, host); in session_setup_sia()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dhostfile.c112 host_hash(const char *host, const char *name_from_hostfile, u_int src_len) in host_hash() argument
134 HMAC_Update(&mac_ctx, (u_char *) host, strlen(host)); in host_hash()
176 hostfile_check_key(int bits, const Key *key, const char *host, const char *filename, int linenum) in hostfile_check_key() argument
183 filename, linenum, host, BN_num_bits(key->rsa->n), bits); in hostfile_check_key()
202 const char *host, const Key *key, int keytype, Key *found, int *numret) in check_host_in_hostfile_by_key_or_type() argument
241 if (match_hostname(host, cp, (u_int) (cp2 - cp)) != 1) { in check_host_in_hostfile_by_key_or_type()
244 hashed_host = host_hash(host, cp, (u_int) (cp2 - cp)); in check_host_in_hostfile_by_key_or_type()
276 if (!hostfile_check_key(kbits, found, host, filename, linenum)) in check_host_in_hostfile_by_key_or_type()
304 check_host_in_hostfile(const char *filename, const char *host, const Key *key, in check_host_in_hostfile() argument
309 return (check_host_in_hostfile_by_key_or_type(filename, host, key, 0, in check_host_in_hostfile()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Darp.c225 char *host = argv[0], *eaddr = argv[1]; in set() local
232 sin->sin_addr.s_addr = inet_addr(host); in set()
234 hp = gethostbyname(host); in set()
237 host); in set()
287 perror(host); in set()
298 get(char *host) in get() argument
310 sin->sin_addr.s_addr = inet_addr(host); in get()
312 hp = gethostbyname(host); in get()
315 host); in get()
330 host, inet_ntoa(sin->sin_addr)); in get()
[all …]
/titanic_41/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c94 httpAddrLoad(const struct hostent *host, /* I - Host entry */ in httpAddrLoad() argument
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->h_addrtype == AF_INET) in httpAddrLoad()
130 memcpy((char *)&(addr->ipv4.sin_addr), host->h_addr_list[n], in httpAddrLoad()
131 host->h_length); in httpAddrLoad()
180 struct hostent *host; /* Host from name service */ in httpAddrLookup() local
[all …]

12345678910>>...19