Searched defs:host (Results 26 - 50 of 252) sorted by relevance

1234567891011

/illumos-gate/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; local
80 for (host = string; host < end; host ++)
81 if (*host == '@') {
82 /* string to host is the user part */
83 u->user_part = strndup(string, host-string);
84 /* host+1 to end is the host par
[all...]
H A Dmisc.c172 match_interfaces(char *host) argument
183 /* cycle through the host db addresses */
184 hp = getipnodebyname(host, AF_INET6, AI_ALL|AI_V4MAPPED, &errnum);
205 is_localhost(char *host) argument
210 if (strncasecmp(host, "localhost", 10) == 0)
215 if (strncasecmp(host, hostname, strlen(hostname)) == 0)
219 /* does it match one of the host's configured interfaces */
220 if (match_interfaces(host) != 0)
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Ddnssrv.c44 free(p->host);
63 char host[MAXDNAME], *h; local
87 sprintf(host, "%s.%s.%.*s", service, protocol, (int) realm->length,
99 h = host + strlen (host);
100 if ((h[-1] != '.') && ((h - host + 1) < sizeof(host)))
104 fprintf (stderr, "sending DNS SRV query for %s\n", host);
107 size = krb5int_dns_init(&ds, host, C_IN, T_SRV);
126 nlen = krb5int_dns_expand(ds, p, host, sizeo
[all...]
H A Ddnsglue.c80 char *host, int nclass, int ntype)
128 len = res_nsearch(&statbuf, host, ds->nclass, ds->ntype,
131 len = res_search(host, ds->nclass, ds->ntype,
255 char host[MAXDNAME]; local
275 p, host, sizeof(host));
299 char host[MAXDNAME]; local
311 p, host, sizeof(host));
79 krb5int_dns_init(struct krb5int_dns_state **dsp, char *host, int nclass, int ntype) argument
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_simple.c65 char host[MAXHOSTNAMELEN]; /* Servers host */ member in struct:rpc_call_private
84 * the future calls to same prog, vers, host and nettype combination.
89 rpc_call(const char *host, const rpcprog_t prognum, const rpcvers_t versnum, argument
124 strcmp(rcp->host, host) == 0 &&
134 rcp->client = clnt_create(host, prognum, versnum, nettype);
151 if ((strlen(host) < (size_t)MAXHOSTNAMELEN) &&
153 (void) strcpy(rcp->host, host);
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetnetgrent.c68 #define INNETGR_ARGS const char *netgroup, const char *host, \
75 return (innetgr_p(netgroup, host, user, domain, net_data));
79 getnetgrent(NGR_R_CONST char **host, NGR_R_CONST char **user, argument
90 DE_CONST(ch, *host);
118 innetgr_p(const char *netgroup, const char *host, argument
125 return ((*ng->test)(ng, netgroup, host, user, domain));
129 getnetgrent_p(const char **host, const char **user, const char **domain, argument
135 return ((*ng->next)(ng, host, user, domain));
H A Dirp_ng.c158 ng_next(struct irs_ng *this, const char **host, const char **user, argument
182 if (irp_unmarshall_ng(host, user, domain, body) == 0) {
201 const char *host, const char *user, const char *domain)
216 if (irp_marshall_ng(host, user, domain, &body, &bodylen) != 0) {
200 ng_test(struct irs_ng *this, const char *name, const char *host, const char *user, const char *domain) argument
/illumos-gate/usr/src/cmd/rpcsvc/
H A Dspray.c71 char *host = NULL; local
102 host = argv[optind++];
105 if (host == NULL)
107 clnt = clnt_create(host, SPRAYPROG, SPRAYVERS, type);
109 sprintf(msgbuf, "spray: cannot clnt_create %s:%s", host, type);
123 printf("sending %u packets of length %u to %s ...", cnt, lnth, host);
142 100.0 * (cnt - cumul.counter)/cnt, host);
144 printf("\n\tno packets dropped by %s\n", host);
182 printf("spray host [-t nettype] [-l lnth] [-c cnt] [-d delay]\n");
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmconnect.c30 * Usage: mconnect [host]
79 char *host = NULL; local
104 case 'h': /* host */
116 } else if (host == NULL)
117 host = p;
119 if (host == NULL)
120 host = "localhost";
123 hp = getipnodebyname(host, AF_INET6, AI_DEFAULT|AI_ALL, &err);
126 (void) fprintf(stderr, "mconnect: unknown host %s\r\n", host);
[all...]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dexample.c51 char host[512]; local
67 if (gethostname(host, sizeof host) < 0)
68 snprintf(host, sizeof host, "localhost");
74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dsm_resolve.c176 char host[MAXHOSTNAMELEN]; local
190 status = dn_expand(data, data + len, p, host, sizeof(host));
196 r->dns_r_q.dns_q_domain = sm_strdup(host);
214 status = dn_expand(data, data + len, p, host, sizeof(host));
247 (*rr)->rr_domain = sm_strdup(host);
262 status = dn_expand(data, data + len, p, host,
263 sizeof(host));
269 (*rr)->rr_u.rr_txt = sm_strdup(host);
[all...]
/illumos-gate/usr/src/cmd/tcpd/
H A Dscaffold.c48 struct hostent host; member in struct:hostent_block
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
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_subr.c132 cmn_err(CE_NOTE, "!host: %s\n", svp->ri_hostname);
143 rdc_create_svinfo(char *host, struct netbuf *svaddr, struct knetconfig *conf) argument
146 int hlen = strlen(host) + 1;
152 if (host == NULL) {
185 (void) strncpy(nvp->ri_hostname, host, hlen);
/illumos-gate/usr/src/lib/libadutils/common/
H A Daddisc.h82 char host[AD_DISC_MAXHOSTNAME]; member in struct:ad_disc_ds
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetether.c69 char **host, **macaddress; local
75 host = __ns_ldap_getAttr(result->entry, _E_HOSTNAME);
76 if (host == NULL || host[0] == NULL || (strlen(host[0]) < 1)) {
86 be->buflen = strlen(host[0]) + strlen(macaddress[0]) + 1; /* ' ' */
95 macaddress[0], host[0]);
115 * fully qualified host names (e.g., foo.bar.sun.com).
H A Dgethostent6.c37 /* host attributes filters */
83 * on fully qualified host names (foo.bar.sun.com)
115 /* Is this a request for a host.domain */
117 char host[MAXHOSTNAMELEN]; local
121 /* separate host and domain. this function */
126 if (chophostdomain(hname, host, domain) == -1) {
133 /* host.domain and host */
138 _F_GETHOSTS6DOTTEDBYNAME, hostname, host);
143 _F_GETHOSTS6DOTTEDBYNAME_SSD, hostname, host);
[all...]
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Dkey_call_uid.c54 char host[MAX_MACHINE_NAME + 1]; local
57 if (gethostname(host, sizeof (host) - 1) == -1) {
62 host[MAX_MACHINE_NAME] = '\0';
64 res = authsys_create(host, uid, gid, 0, (gid_t *)NULL);
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c219 remote_command(char *command, char *host) argument
226 if ((fd = rcmd_af(&host, htons(514), pw->pw_name, "root",
251 char *host = NULL; local
259 if ((yp_master(domain, (char *)map, &host) != 0) &&
260 (yp_master(domain, "passwd.byname", &host) != 0))
268 if (snprintf(rfile, sizeof (rfile), "root@%s:/etc/%s", host, map) >=
305 MAKE_EXCERPT, host, NIS_MAKEFILE) >= sizeof (cmd)) {
324 return (remote_command(cmd, host));
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Dbootparam_prot.h50 char host; member in struct:ip_addr_t
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DServiceURL.java94 private String host = ""; field in class:ServiceURL
172 return host;
214 host + (port != NO_PORT ? (":" + port) : "") +
223 host.hashCode() +
244 host.equals(surl.host) &&
384 // Check for separator between transport and host.
396 // Not abstract type, no alternate transport. Get host.
402 if (sAddr.equals("/")) {// no host part
408 host
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dether_addr.c74 * Given a host's name, this routine finds the corresponding 48 bit
80 const char *host, /* function input */
91 arg.key.name = host;
105 char *host, /* function output */
115 NSS_XbyY_INIT(&arg, NULL, host, 0, str2ether);
119 /* memcpy(host, ether_res.host, strlen(ether_res.host)); */
166 * then do a match for the host key) and happens for "nis"
186 char *host local
79 ether_hostton( const char *host, struct ether_addr *e ) argument
104 ether_ntohost( char *host, const struct ether_addr *e ) argument
[all...]
H A Dgetnameinfo.c50 static int addzoneid(const struct sockaddr_in6 *sa, char *host,
69 * hostlen - length of caller supplied "host" buffer
75 * NI_NUMERICHOST - Always return numeric form of the host's
86 * host - return the nodename associcated with the IP address in the
87 * buffer pointed to by the "host" argument.
96 char *host, socklen_t hostlen,
133 * fill in "host" buffer that user passed in
138 /* Caller wants the host's numeric address */
140 host, hostlen) == NULL)
145 /* Caller wants the name of host */
95 getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) argument
278 addzoneid(const struct sockaddr_in6 *sa, char *host, size_t hostlen) argument
[all...]
H A Druserpass.c56 static void rnetrc(const char *host, char **aname, char **apass);
118 _ruserpass(const char *host, char **aname, char **apass) argument
122 rnetrc(host, aname, apass);
129 host, myname);
142 host, *aname);
150 rnetrc(const char *host, char **aname, char **apass) argument
179 if (token() != ID || strcmp(host, d->tokval))
/illumos-gate/usr/src/lib/libwrap/
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 */
[all...]
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgethostent.c109 struct hostent *host = (struct hostent *)ent; local
243 host->h_aliases = _nss_netdb_aliases(p, limit - p,
245 if (host->h_aliases == NULL)
254 if (host->h_aliases == 0) {
261 host->h_name = host->h_aliases[0];
262 host->h_aliases++;
271 host->h_length = sizeof (struct in6_addr);
273 host->h_length = sizeof (struct in_addr);
275 host
[all...]

Completed in 101 milliseconds

1234567891011