/illumos-gate/usr/src/cmd/hal/probing/network-printer/ |
H A D | probe-snmp.c | 123 tmp = snmp_get_string(hostname, community, in snmp_brother_printer_info() 151 tmp = snmp_get_string(hostname, community, in snmp_ricoh_printer_info() 179 tmp = snmp_get_string(hostname, community, in snmp_lexmark_printer_info() 218 tmp = snmp_get_string(hostname, community, in snmp_xerox_phaser_printer_info() 271 tmp = snmp_get_string(hostname, community, in snmp_qms_printer_info() 281 tmp = snmp_get_string(hostname, community, in snmp_qms_printer_info() 284 tmp = snmp_get_string(hostname, community, in snmp_qms_printer_info() 306 tmp = snmp_get_string(hostname, community, in snmp_oki_printer_info() 334 tmp = snmp_get_string(hostname, community, in snmp_hp_printer_info() 361 tmp = snmp_get_string(hostname, community, in snmp_ppm_printer_info() [all …]
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | identity-node | 57 "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;; 58 "rarp") hostname=`/sbin/hostconfig -h -p bootparams` 65 hostname=`/sbin/hostconfig -h -p bootparams` 69 if [ -z "$hostname" ]; then 71 hostname=`/sbin/hostconfig -h -p bootparams` 73 hostname=`/sbin/uname -n` 82 if [ -z "$hostname" ]; then 83 hostname="`shcat /etc/nodename 2>/dev/null`" 84 if [ -z "$hostname" ]; then 85 hostname="unknown" [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | hosttype.tst | 1 hp.pa hostname 9000/730 hp9000s700 HP-UX hostname A.09.01 A 2 linux-aout.i386 hostname i586 i386 linux hostname 1.1.59 #1 3 sgi.mips2 hostname.domain IP22 mips IRIX hostname 5.2 02282016 4 osf.alpha hostname.domain alpha alpha OSF1 hostname.domain V3.2 62 5 sun4 hostname.domain sun4 sparc SunOS hostname.domain 4.1.1 1 sun4c 6 sol.sun4 hostname.domain sun4 sparc SunOS hostname.domain 5.4 Generic_101945-13
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rwall.c | 80 char hostname[256]; in main() local 94 (void) gethostname(hostname, sizeof (hostname)); in main() 98 msize = snprintf(buf, sizeof (buf), "From %s@%s: ", who, hostname); in main() 184 doit(char *hostname) in doit() argument 199 thread_hostname = strdup(hostname); in doit() 216 char *hostname = arg; in do_one() local 230 hostname, WALLPROG, WALLVERS, "datagram_v", &tp); in do_one() 235 hostname); in do_one() 236 clnt_pcreateerror(hostname); in do_one() 245 clnt_perror(clnt, hostname); in do_one() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | gethostent6.c | 87 char hostname[3 * MAXHOSTNAMELEN]; in getbyname() local 96 sizeof (hostname)) != 0) in getbyname() 100 _F_GETHOSTS6BYNAME, hostname); in getbyname() 104 _F_GETHOSTS6BYNAME_SSD, hostname); in getbyname() 114 if (DOTTEDSUBDOMAIN(hostname)) { in getbyname() 123 (void) strcpy(hname, hostname); in getbyname() 136 _F_GETHOSTS6DOTTEDBYNAME, hostname, host); in getbyname() 148 _F_GETHOSTS6BYNAME, hostname); in getbyname() 153 _F_GETHOSTS6BYNAME_SSD, hostname); in getbyname() 159 _F_GETHOSTS6BYNAME, hostname); in getbyname() [all …]
|
H A D | gethostent.c | 268 char hostname[3 * MAXHOSTNAMELEN]; in getbyname() local 276 if (_ldap_filter_name(hostname, argp->key.name, sizeof (hostname)) != 0) in getbyname() 280 hostname); in getbyname() 285 hostname); in getbyname() 295 if (DOTTEDSUBDOMAIN(hostname)) { in getbyname() 304 (void) strcpy(hname, hostname); in getbyname() 318 _F_GETHOSTDOTTEDBYNAME, hostname, host); in getbyname() 330 _F_GETHOSTBYNAME, hostname); in getbyname() 335 _F_GETHOSTBYNAME_SSD, hostname); in getbyname() 341 _F_GETHOSTBYNAME, hostname); in getbyname() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sn2princ.c | 85 krb5_sname_to_principal(krb5_context context, const char *hostname, const char *sname, krb5_int32 t… in krb5_sname_to_principal() argument 94 printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type); in krb5_sname_to_principal() 101 if (! hostname) { in krb5_sname_to_principal() 108 hostname = localname; in krb5_sname_to_principal() 140 hostname); in krb5_sname_to_principal() 144 hp = res_getipnodebyname(hostname, addr_family, 0, &err); in krb5_sname_to_principal() 147 printf("sname_to_princ: probably punting due to bad hostname of %s\n",hostname); in krb5_sname_to_principal() 163 hostname, strerror(err)); in krb5_sname_to_principal() 166 remote_host = strdup(hp ? hp->h_name : hostname); in krb5_sname_to_principal() 211 remote_host = strdup(hostname); in krb5_sname_to_principal()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | netname.c | 270 char hostname[MAXHOSTNAMELEN + 1]; in host2netname() local 279 (void) strncpy(hostname, nis_local_host(), sizeof (hostname)); in host2netname() 280 p = (char *)strchr(hostname, '.'); in host2netname() 290 if (len >= sizeof (hostname)) { in host2netname() 293 (void) strcpy(hostname, host); in host2netname() 296 dot_in_host = (char *)strchr(hostname, '.'); in host2netname() 300 p = (char *)nis_domain_of(hostname); in host2netname() 330 if ((strlen(domainname) + strlen(hostname) + OPSYS_LEN + 3) in host2netname() 336 "%s.%s@%s", OPSYS, hostname, domainname); in host2netname()
|
H A D | clnt_generic.c | 70 clnt_create_vers(const char *hostname, const rpcprog_t prog, in clnt_create_vers() argument 173 clnt_create_timed(const char *hostname, const rpcprog_t prog, in clnt_create_timed() argument 203 if (__rpc_is_local_host(hostname)) { in clnt_create_timed() 305 char *hostname, *serv; in clnt_create_service_timed() local 336 if (host == NULL || (hostname = strdup(host)) == NULL) { in clnt_create_service_timed() 346 free(hostname); in clnt_create_service_timed() 353 hs.h_host = hostname; in clnt_create_service_timed() 363 if (__rpc_is_local_host(hostname)) { in clnt_create_service_timed() 474 if (hostname) in clnt_create_service_timed() 475 free(hostname); in clnt_create_service_timed() [all …]
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_rsvd.c | 37 __yp_clnt_create_rsvdport_netid_req(const char *hostname, rpcprog_t prog, in __yp_clnt_create_rsvdport_netid_req() argument 55 return (clnt_create(hostname, prog, vers, nt)); in __yp_clnt_create_rsvdport_netid_req() 76 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { in __yp_clnt_create_rsvdport_netid_req() 97 __yp_clnt_create_rsvdport(const char *hostname, rpcprog_t prog, in __yp_clnt_create_rsvdport() argument 103 ret = __yp_clnt_create_rsvdport_netid_req(hostname, prog, in __yp_clnt_create_rsvdport() 106 ret = __yp_clnt_create_rsvdport_netid_req(hostname, in __yp_clnt_create_rsvdport() 110 return (__yp_clnt_create_rsvdport_netid_req(hostname, prog, in __yp_clnt_create_rsvdport()
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netlogon.c | 277 char hostname[NETBIOS_NAME_SZ]; in smb_netlogon_query() local 279 if (smb_getnetbiosname(hostname, sizeof (hostname)) != 0) in smb_netlogon_query() 282 name_lengths = strlen(mailbox)+1+strlen(hostname)+1; in smb_netlogon_query() 304 hostname, in smb_netlogon_query() 306 hostname, in smb_netlogon_query() 360 char hostname[NETBIOS_NAME_SZ]; in smb_netlogon_samlogon() local 364 if (smb_getnetbiosname(hostname, sizeof (hostname)) != 0) in smb_netlogon_samlogon() 370 name_length = strlen(hostname) + 2; in smb_netlogon_samlogon() 372 (void) snprintf(username, name_length, "%s$", hostname); in smb_netlogon_samlogon() 383 + smb_wcequiv_strlen(hostname) + 2 in smb_netlogon_samlogon() [all …]
|
H A D | smbns_dyndns.c | 1164 key_name = (char *)hostname; in dyndns_get_sec_context() 1253 p = (char *)hostname; in dyndns_build_add_remove_msg() 1263 resource = (char *)hostname; in dyndns_build_add_remove_msg() 1312 data = (char *)hostname; in dyndns_build_add_remove_msg() 1577 key_name = (char *)hostname; in dyndns_sec_add_remove_entry() 1734 if (strncasecmp(dns_hostname, hostname, in dyndns_search_entry() 1735 strlen(hostname)) == 0) { in dyndns_search_entry() 1857 if ((p = strchr(hostname, '.')) == NULL) in dyndns_add_remove_entry() 1903 if (hostname == NULL || ip_addr == NULL) { in dyndns_add_entry() 1917 which_zone, hostname, ip_addr); in dyndns_add_entry() [all …]
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetethers.c | 38 putethers(const char *hostname, const struct ether_addr *e, FILE *fp) in putethers() argument 40 if (hostname == NULL || e == NULL) in putethers() 43 if (fprintf(fp, "%-20s %s\n", hostname, ether_ntoa(e)) == EOF) in putethers() 62 char hostname[MAXHOSTNAMELEN + 1]; in dogetethers() local 67 hp = hostname; in dogetethers()
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | lookup.c | 69 char *hostname; in cmd_lookup() local 103 hostname = argv[argc - 1]; in cmd_lookup() 104 error = nbns_resolvename(hostname, ctx, &sap); in cmd_lookup() 106 smb_error(gettext("unable to resolve %s"), error, hostname); in cmd_lookup() 111 printf(gettext("IP address of %s: %s\n"), hostname, in cmd_lookup()
|
H A D | status.c | 69 char *hostname; in cmd_status() local 96 hostname = argv[argc - 1]; in cmd_status() 97 error = nb_resolvehost_in(hostname, &ina); in cmd_status() 100 "unable to resolve DNS hostname %s"), error, hostname); in cmd_status() 113 gettext("unable to get status from %s"), error, hostname); in cmd_status()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rexecd.c | 166 char hostname [MAXHOSTNAMELEN + 1]; in doit() local 220 sizeof (hostname), NULL, 0, 0) != 0) { in doit() 237 (void) strncpy(hostname, abuf, sizeof (hostname)); in doit() 275 (void) audit_rexecd_fail("Login incorrect", hostname, user, in doit() 297 if (pam_set_item(pamh, PAM_RHOST, hostname) != PAM_SUCCESS) { in doit() 304 (void) audit_rexecd_fail("Login incorrect", hostname, in doit() 309 (void) audit_rexecd_fail("Password incorrect", hostname, in doit() 318 hostname, user, cmdbuf); in doit() 340 (void) audit_rexecd_fail("Can't setgid", hostname, in doit() 350 hostname, user, cmdbuf); /* BSM */ in doit() [all …]
|
H A D | in.rshd.c | 413 static char hostname [MAXHOSTNAMELEN + 1]; variable 529 hostname, sizeof (hostname), NULL, 0, 0) != 0); in doit() 538 (void) strlcpy(hostname, abuf, sizeof (hostname)); in doit() 558 sizeof (hostname)); in doit() 567 "bad port\n", hostname, abuf); in doit() 731 hostname, locuser); in doit() 788 "Permission denied", hostname, in doit() 820 " this host.\n", hostname, remuser, in doit() 826 hostname, remuser, locuser, cmdbuf); in doit() 836 hostname, remuser, locuser, cmdbuf); in doit() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 82 static char hostname[MAXHOSTNAMELEN]; variable 307 hostname); in unknown_host() 353 sizeof (hostname)); in setpeer() 356 sizeof (hostname)); in setpeer() 490 sizeof (hostname)); in put() 493 sizeof (hostname)); in put() 510 cp, hostname, targ, mode); in put() 614 sizeof (hostname)); in get() 617 sizeof (hostname)); in get() 630 hostname, src, cp, mode); in get() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | getaddrinfo.c | 321 const char *hostname, *servname; in getaddrinfo() 472 if (hostname == NULL) { 501 if (hostname == NULL) 610 const char *hostname; 642 if (!strchr(hostname, '.') && 645 hostname = cp; 781 const char *hostname; 844 const char *hostname; 864 cp = strchr(hostname, SCOPE_DELIMITER); 871 hostname2 = strdup(hostname); [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getaddrinfo.c | 205 _getaddrinfo(const char *hostname, const char *servname, in _getaddrinfo() argument 242 if (hostname == NULL && servname == NULL) in _getaddrinfo() 260 if ((hostname == NULL || *hostname == '\0') && in _getaddrinfo() 464 error = get_addr(aip->ai_family, hostname, aip, cur, in _getaddrinfo() 480 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument 487 __xnet_getaddrinfo(const char *hostname, const char *servname, in __xnet_getaddrinfo() argument 611 if (hostname == NULL) { in get_addr() 673 if ((zonestr = strchr(hostname, '%')) != NULL) { in get_addr() 675 if ((zonestr - hostname) + 1 > sizeof (_hostname)) in get_addr() 679 (void) strlcpy(_hostname, hostname, (zonestr - hostname) + 1); in get_addr() [all …]
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 150 if (hostname != NULL) { in send_ocsp_request() 480 char *reqfile, char *hostname, in kmf_get_encoded_ocsp_response() argument 515 "http://%s:%d", hostname, final_port); in kmf_get_encoded_ocsp_response() 557 hostname, port, loc); in send_download_request() 563 hostname, port); in send_download_request() 581 char *hostname = NULL; in download_file() local 602 hostname = uriptr->server; in download_file() 603 if (hostname == NULL) { in download_file() 629 sock = connect_to_server(hostname, port); in download_file() 921 hostname = uriptr->server; in kmf_get_ocsp_for_cert() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_nfs.c | 2402 if (argp->hostname) in nfsmount() 2786 char *hostname, in get_server_netinfo() argument 3173 char *hostname; in pingnfs() local 3199 free(hostname); in pingnfs() 3251 free(hostname); in pingnfs() 3255 free(hostname); in pingnfs() 3358 hostname, in pingnfs() 3384 free(hostname); in pingnfs() 3388 free(hostname); in pingnfs() 3449 free(hostname); in pingnfs() [all …]
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | eval.c | 81 if (host->request->hostname != 0) 82 host->request->hostname(host); 92 char *hostname; local 98 hostname = eval_hostname(host); 99 if (HOSTNAME_KNOWN(hostname)) {
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_rexd.c | 148 audit_rexd_fail(msg, hostname, user, uid, gid, shell, cmd) in audit_rexd_fail() argument 150 char *hostname; /* hostname of machine requesting service */ 213 "Remote execution requested by: %s"), hostname); 267 audit_rexd_success(hostname, user, uid, gid, shell, cmd) in audit_rexd_success() argument 268 char *hostname; /* hostname of machine requesting service */ in audit_rexd_success() 303 if (hostname == NULL) 304 hostname = empty; 337 "Remote execution requested by: %s"), hostname); 383 audit_rexd_session_setup(user, hostname, uid);
|
H A D | audit_rexecd.c | 127 audit_rexecd_fail(msg, hostname, user, cmdbuf) in audit_rexecd_fail() argument 129 char *hostname; /* hostname of machine requesting service */ 180 rc = aug_get_machine(hostname, addr, &type); 205 "Remote execution requested by: %s"), hostname); 239 audit_rexecd_success(hostname, user, cmdbuf) in audit_rexecd_success() argument 240 char *hostname; /* hostname of machine requesting service */ in audit_rexecd_success() 291 rc = aug_get_machine(hostname, addr, &type); 313 "Remote execution requested by: %s"), hostname); 345 audit_rexecd_session_setup(user, hostname, uid);
|