Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/cmd/hal/probing/network-printer/
H A Dprobe-snmp.c123 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 Didentity-node57 "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 Dhosttype.tst1 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 Drwall.c82 char hostname[256]; in main() local
96 (void) gethostname(hostname, sizeof (hostname)); in main()
100 msize = snprintf(buf, sizeof (buf), "From %s@%s: ", who, hostname); in main()
186 doit(char *hostname) in doit() argument
201 thread_hostname = strdup(hostname); in doit()
218 char *hostname = arg; in do_one() local
232 hostname, WALLPROG, WALLVERS, "datagram_v", &tp); in do_one()
237 hostname); in do_one()
238 clnt_pcreateerror(hostname); in do_one()
247 clnt_perror(clnt, hostname); in do_one()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgethostent6.c89 char hostname[3 * MAXHOSTNAMELEN]; in getbyname() local
98 sizeof (hostname)) != 0) in getbyname()
102 _F_GETHOSTS6BYNAME, hostname); in getbyname()
106 _F_GETHOSTS6BYNAME_SSD, hostname); in getbyname()
116 if (DOTTEDSUBDOMAIN(hostname)) { in getbyname()
125 (void) strcpy(hname, hostname); in getbyname()
138 _F_GETHOSTS6DOTTEDBYNAME, hostname, host); in getbyname()
150 _F_GETHOSTS6BYNAME, hostname); in getbyname()
155 _F_GETHOSTS6BYNAME_SSD, hostname); in getbyname()
161 _F_GETHOSTS6BYNAME, hostname); in getbyname()
[all …]
H A Dgethostent.c270 char hostname[3 * MAXHOSTNAMELEN]; in getbyname() local
278 if (_ldap_filter_name(hostname, argp->key.name, sizeof (hostname)) != 0) in getbyname()
282 hostname); in getbyname()
287 hostname); in getbyname()
297 if (DOTTEDSUBDOMAIN(hostname)) { in getbyname()
306 (void) strcpy(hname, hostname); in getbyname()
320 _F_GETHOSTDOTTEDBYNAME, hostname, host); in getbyname()
332 _F_GETHOSTBYNAME, hostname); in getbyname()
337 _F_GETHOSTBYNAME_SSD, hostname); in getbyname()
343 _F_GETHOSTBYNAME, hostname); in getbyname()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsn2princ.c85 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 Dnetname.c270 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 Dclnt_generic.c70 clnt_create_vers(const char *hostname, const rpcprog_t prog, in clnt_create_vers() argument
174 clnt_create_timed(const char *hostname, const rpcprog_t prog, in clnt_create_timed() argument
204 if (__rpc_is_local_host(hostname)) { in clnt_create_timed()
306 char *hostname, *serv; in clnt_create_service_timed() local
337 if (host == NULL || (hostname = strdup(host)) == NULL) { in clnt_create_service_timed()
347 free(hostname); in clnt_create_service_timed()
354 hs.h_host = hostname; in clnt_create_service_timed()
364 if (__rpc_is_local_host(hostname)) { in clnt_create_service_timed()
476 if (hostname) in clnt_create_service_timed()
477 free(hostname); in clnt_create_service_timed()
[all …]
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_rsvd.c39 __yp_clnt_create_rsvdport_netid_req(const char *hostname, rpcprog_t prog, in __yp_clnt_create_rsvdport_netid_req() argument
57 return (clnt_create(hostname, prog, vers, nt)); in __yp_clnt_create_rsvdport_netid_req()
78 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { in __yp_clnt_create_rsvdport_netid_req()
99 __yp_clnt_create_rsvdport(const char *hostname, rpcprog_t prog, in __yp_clnt_create_rsvdport() argument
105 ret = __yp_clnt_create_rsvdport_netid_req(hostname, prog, in __yp_clnt_create_rsvdport()
108 ret = __yp_clnt_create_rsvdport_netid_req(hostname, in __yp_clnt_create_rsvdport()
112 return (__yp_clnt_create_rsvdport_netid_req(hostname, prog, in __yp_clnt_create_rsvdport()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netlogon.c277 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 Dsmbns_dyndns.c1164 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 Ddogetethers.c40 putethers(const char *hostname, const struct ether_addr *e, FILE *fp) in putethers() argument
42 if (hostname == NULL || e == NULL) in putethers()
45 if (fprintf(fp, "%-20s %s\n", hostname, ether_ntoa(e)) == EOF) in putethers()
64 char hostname[MAXHOSTNAMELEN + 1]; in dogetethers() local
69 hp = hostname; in dogetethers()
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dlookup.c69 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 Dstatus.c69 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 Din.rexecd.c166 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 Din.rshd.c413 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 Dmain.c82 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/libsocket/inet/
H A Dgetaddrinfo.c193 _getaddrinfo(const char *hostname, const char *servname, in _getaddrinfo() argument
225 if (hostname == NULL && servname == NULL) { in _getaddrinfo()
235 if ((hostname == NULL || *hostname == '\0') && in _getaddrinfo()
449 if (hostname == NULL) { in _getaddrinfo()
547 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
554 __xnet_getaddrinfo(const char *hostname, const char *servname, in __xnet_getaddrinfo() argument
557 return (_getaddrinfo(hostname, servname, hints, res, GAIV_XPG6)); in __xnet_getaddrinfo()
582 if ((zonestr = strchr(hostname, '%')) != NULL) { in get_addr()
584 if (((zonestr - hostname) + 1) > sizeof (_hostname)) { in get_addr()
589 (void) strlcpy(_hostname, hostname, (zonestr - hostname) + 1); in get_addr()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetaddrinfo.c321 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/libkmf/libkmf/common/
H A Dclient.c152 if (hostname != NULL) { in send_ocsp_request()
482 char *reqfile, char *hostname, in kmf_get_encoded_ocsp_response() argument
517 "http://%s:%d", hostname, final_port); in kmf_get_encoded_ocsp_response()
559 hostname, port, loc); in send_download_request()
565 hostname, port); in send_download_request()
583 char *hostname = NULL; in download_file() local
604 hostname = uriptr->server; in download_file()
605 if (hostname == NULL) { in download_file()
631 sock = connect_to_server(hostname, port); in download_file()
923 hostname = uriptr->server; in kmf_get_ocsp_for_cert()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Deval.c82 if (host->request->hostname != 0)
83 host->request->hostname(host);
93 char *hostname; local
99 hostname = eval_hostname(host);
100 if (HOSTNAME_KNOWN(hostname)) {
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_nfs.c2402 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/libbsm/common/
H A Daudit_rexd.c148 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 Daudit_rexecd.c127 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);

12345678910>>...12