/illumos-gate/usr/src/cmd/lms/tools/ |
H A D | ATNetworkTool.cpp | 572 int ATNetworkTool::Connect(const char *host, in_port_t port, argument 580 return ATNetworkTool::Connect(host, ssport.str().c_str(), error, 584 int ATNetworkTool::Connect(const char *host, const char *port, argument 607 if ((error = getaddrinfo(host, port, &hints, &paddrp)) != 0) { 619 if ((error = getaddrinfo(host, port, &hints, &paddrp)) != 0) {
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_health.c | 79 * These structures are added when a new host name is introduced to the 83 char host[MAX_RDC_HOST_SIZE]; /* The host name of this link */ member in struct:rdc_link_down 380 rdc_lookup_host(char *host) argument 392 if (strcmp(host, p->host) == 0) { 405 (void) strncpy(p->host, host, MAX_RDC_HOST_SIZE); 416 * The user specifies which host he is interested in. 417 * This function is woken up when the link to that host goe 424 char host[MAX_RDC_HOST_SIZE]; local [all...] |
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 108 struct nlm_host *host, 127 struct nlm_host *host, rpcvers_t vers, short type) 155 fl->l_sysid = host->nh_sysid; 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; local 292 host 126 nlm_init_flock(struct flock64 *fl, struct nlm4_lock *nl, struct nlm_host *host, rpcvers_t vers, short type) argument 323 struct nlm_host *host; local 465 struct nlm_host *host = NULL; local 679 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) argument 774 struct nlm_host *host; local 871 struct nlm_host *host; local 969 struct nlm_host *host; local 1077 nlm_init_shrlock(struct shrlock *shr, nlm4_share *nshare, struct nlm_host *host) argument 1128 struct nlm_host *host; local 1196 struct nlm_host *host; local [all...] |
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 115 struct hostent *host; local 120 host = (struct hostent *)argp->buf.result; 124 host->h_addrtype = af_type; 125 host->h_length = (af_type == AF_INET) ? sizeof (struct in_addr) 130 host->h_name = buffer; 131 if (host->h_name + len >= limit) 133 (void) memcpy(host->h_name, he->h_name, len); 139 host->h_addr_list = (char **) 141 ret = dns_netdb_aliases(he->h_addr_list, host->h_addr_list, 146 host 425 char host[MAXHOSTNAMELEN]; /* result host name */ local [all...] |
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/ |
H A D | fmd_adm.c | 43 fmd_adm_open(const char *host, uint32_t prog, int version) argument 54 if (host == NULL) 55 host = HOST_SELF; 63 if (strcmp(host, HOST_SELF) == 0) { 67 c = clnt_create_vers(host, prog, &v,
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_error.c | 55 if (ep->host != NULL) 56 Free(ep->host); 147 char *name /* optional name or host */ 150 /* get host name */ 151 if (ep->host != NULL) { 152 Free(ep->host); 153 ep->host = NULL; 157 ep->host = Strdup(name); 160 ep->host = Strdup(mynode()); 337 char *host, 334 mdrpcerror( md_error_t *ep, CLIENT *clntp, char *host, char *extra ) argument 358 mdrpccreateerror( md_error_t *ep, char *host, char *extra ) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_subr.c | 144 char host[LN_BUFSIZE]; member in struct:local_names 188 if (sysinfo(SI_HOSTNAME, ln->host, LN_BUFSIZE) < 0) 194 * domainname for the host principal name. 196 t = strchr(ln->host, '.'); 200 (void) strcat(ln->host, "."); 202 (void) strcat(ln->host, ln->domain); 487 * Generate the principal name for this host, "hostname"+"domainname" 501 return (ln->host); 740 * Note: If the remote host doesn't support version 3,
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 124 * decimal dot equivalent. h1.h2.h3.h4.p1.p2 where h1-h4 are the host 212 /* convert the host address first */ 475 * Given a host name, check if it is this host. 478 __inet_netdir_is_my_host(const char *host) argument 486 h = gethostbyname_r(host, (void *)&res, buf, sizeof (buf), &error); 515 clnt_addr = ntohl(addr.s_addr); /* host order */ 521 netmask = ntohl(ifn->if_netmask.s_addr); /* host order */ 522 if_addr = ntohl(ifn->if_address.s_addr); /* host order */
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpc_soc.c | 416 * Get port used by specified service on specified host. 421 getrpcport(char *host, rpcprog_t prognum, rpcvers_t versnum, argument 427 if ((hp = gethostbyname(host)) == NULL) 439 callrpc(char *host, rpcprog_t prognum, rpcvers_t versnum, rpcproc_t procnum, argument 442 return ((int)rpc_call(host, prognum, versnum, procnum, inproc,
|
H A D | rpcb_clnt.c | 151 * block all clnt_create's if we are trying to connect to a host that's down, 158 * cache of rpcbind addresses for (host, netid). 162 check_cache(char *host, char *netid) argument 170 if ((strcmp(cptr->ac_host, host) == 0) && 207 add_cache(char *host, char *netid, struct netbuf *taddr, char *uaddr) argument 216 ad_cache->ac_host = strdup(host); 287 getclnthandle(char *host, struct netconfig *nconf, char **targaddr) argument 289 return (_getclnthandle_timed(host, nconf, targaddr, NULL)); 299 _getclnthandle_timed(char *host, struct netconfig *nconf, char **targaddr, argument 317 ad_cache = check_cache(host, ncon 634 __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version, struct netconfig *nconf, char *host, CLIENT **clpp, struct timeval *tp) argument 1073 rpcb_getaddr(const rpcprog_t program, const rpcvers_t version, const struct netconfig *nconf, struct netbuf *address, const char *host) argument 1102 rpcb_getmaps(const struct netconfig *nconf, const char *host) argument 1155 rpcb_rmtcall(const struct netconfig *nconf, const char *host, const rpcprog_t prog, const rpcvers_t vers, const rpcproc_t proc, const xdrproc_t xdrargs, const caddr_t argsp, const xdrproc_t xdrres, const caddr_t resp, const struct timeval tout, struct netbuf *addr_ptr) argument 1221 rpcb_gettime(const char *host, time_t *timep) argument [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_ho.c | 126 struct hostent host; member in struct:pvt 289 * function that looks up host names. 490 pvt->host.h_addrtype = AF_INET6; 491 pvt->host.h_length = IN6ADDRSZ; 616 * function that looks up host names. 718 pvt->host.h_addrtype = af; 719 pvt->host.h_length = size; 720 hname = pvt->host.h_name = NULL; 759 pvt->host.h_name = bp; 763 qname = pvt->host [all...] |
H A D | gethostent.c | 67 struct hostent host; member in struct:pvt 1017 * respect to host names) internet address specification for this AF. 1040 pvt->host.h_addrtype = af; 1043 pvt->host.h_length = NS_INADDRSZ; 1046 pvt->host.h_length = NS_IN6ADDRSZ; 1053 pvt->host.h_name = pvt->name; 1054 pvt->host.h_aliases = pvt->aliases; 1058 pvt->host.h_addr_list = pvt->addrs; 1060 return (&pvt->host);
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 61 * This function will establish a socket to the host on the specified port. 64 static int init_socket(char *host, short port) argument 73 if ((sin.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE) { 74 if ((hp = gethostbyname_r(host, &hrec, hostbuf, 102 * This function will connect to host on the port. 106 connect_to_server(char *host, short port) argument 112 if ((sd = init_socket(host, port)) == -1) { 603 /* get the host name */
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | request.c | 645 sprintf( msg, "* host: %s port: %d secure: %s%s\n", 1027 * - no hostport (no host, no port) provided in LDAP URL, use those 1029 * - no port but a host, use default LDAP port 1272 char *p, *domain, *host, *server_dn, **dxs; local 1293 host = dxs[ i ]; 1296 host = dxs[ i ] + 7; 1297 if (( p = strchr( host, ':' )) == NULL ) { 1298 p = host; 1310 host = NULL; 1313 if ( host ! [all...] |
H A D | sasl.c | 572 char * host; local 585 host = ld->ld_defhost; 587 if ( sb == NULL || host == NULL ) { 605 saslrc = _sasl_client_new(gctx, "ldap", host,
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_main.c | 882 vscand_dtrace_eng(char *id, boolean_t enable, char *host, int port, int conn) argument
|
/illumos-gate/usr/src/lib/auditd_plugins/remote/ |
H A D | transport.c | 245 sock_prepare(int *sockfdptr, struct hostent *host, close_rsn_t *err_rsn) argument 253 DPRINT((dfile, "Creating socket for %s\n", host->h_name)); 255 addr.ss_family = host->h_addrtype; 256 switch (host->h_addrtype) { 260 bcopy(host->h_addr_list[0], 267 bcopy(host->h_addr_list[0], 288 DPRINT((dfile, "Connected to %s via fd=%d\n", host->h_name, 718 * send_record() - send an audit record to a host opening a connection, 758 * Send request to other then previously used host. 760 if (current_host != hostlptr->host) { [all...] |
/illumos-gate/usr/src/lib/auditd_plugins/syslog/ |
H A D | sysplugin.c | 324 struct hostent *host; local 388 host = getipnodebyaddr((const void *)tid->at_addr, 391 if (host == NULL) { 397 host->h_name, MAXHOSTNAMELEN); 398 freehostent(host);
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | common.c | 212 char *host = "localhost"; local 222 "job-originating-host-name", &host); 250 user, rank_string(++rank), id, host, name, size, 312 "job-originating-host-name",
|
H A D | lpstat.c | 181 if ((u->host == NULL) || 182 (strcasecmp(u->host, "localhost") == 0) || 183 (strcasecmp(u->host, nodename) == 0)) 187 printer_name, u->host); 226 if ((u->host == NULL) || 227 (strcasecmp(u->host, "localhost") == 0) || 228 (strcasecmp(u->host, nodename) == 0)) 236 u->host?u->host:"localhost", uri); 332 get_remote_hostname(papi_attribute_t **attrs, char **host) argument 509 char *host = NULL; local 797 char *host = NULL; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rsh.c | 162 * If you do a command like "rsh host output | wc" 181 "[ -k realm ] [ -a ] [ -x ] [ -f / -F ] host command"), 183 "[ -a ] [ -x ] [ -f / -F ] host")); 209 char *host = NULL, *user = NULL; local 237 * create links named by a host pointing to the binary and type 238 * "hostname" to log into that host afterwards. 247 * usurps the ability to use "remsh" as the name of a host (by 250 * is a host name. If it does exist, we accept "remsh" as an 257 host = cmd; 259 host [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 234 (void) fprintf(stderr, "%s: Unknown host (try again later).\n", 237 (void) fprintf(stderr, "%s: Unknown host.\n", hostname); 243 struct hostent *host; local 255 (void) fprintf(stderr, "usage: %s host-name [port]\n", 263 if (host = getipnodebyname(hostnameinput, AF_INET6, 265 (void) memcpy(&sin6.sin6_addr, host->h_addr_list[0], 266 host->h_length); 268 * If host->h_name is a IPv4-mapped IPv6 literal, we'll convert 271 if ((inet_pton(AF_INET6, host->h_name, &ipv6addr) > 0) && 277 (void) strlcpy(hostname, host [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rtquery.c | 419 /* ask the first (valid) host */ 489 * After a pause in responses, probe another host. 516 /* Send to one host */ 518 out(const char *host, int soc) argument 532 if ((ret = getaddrinfo(host, "route", &hints, &res)) != 0) { 534 host, gai_strerror(ret)); 658 * whether the destination is a host or a
|
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metaset.c | 576 * host to an existing diskset). 1069 * yet not delete the host from the set. 1093 "Failed to restore host(s) in DCS " 1162 char *host = NULL; local 1174 if (host != NULL) { 1178 host = optarg; 1199 if (host == NULL) { 1205 if (meta_check_ownership_on_host(sp, host, ep) != 0) { 1287 /* Must not own the set if purging it from this host */ 1327 "Failed to restore host i [all...] |
/illumos-gate/usr/src/cmd/fm/notify/snmp-notify/common/ |
H A D | snmp-notify.c | 54 char *host; member in struct:ireport_trap 210 sunIreport_base_len + 1, ASN_OCTET_STR, (uchar_t *)t->host, 211 strlen(t->host)); 411 swtrap.host = hostname; 525 snmpd_free_trapsinks, "host [community] [port]") == NULL) 528 snmpd_parse_config_trap2sink, NULL, "host [community] [port]") == 532 NULL, "[snmpcmdargs] host") == NULL)
|