Searched refs:hostname (Results 1 - 25 of 261) sorted by relevance

1234567891011

/illumos-gate/usr/src/cmd/svc/milestone/
H A Didentity-node39 # If DHCP was used on a primary interface then set the hostname
40 # that was returned. If no hostname was returned, set the name
41 # to be "unknown". The hostname must be set to something, because
57 "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;
58 "rarp") hostname=`/sbin/hostconfig -h -p bootparams`
60 while [ -z "$hostname" -a ! -f /etc/.UNCONFIGURED -a \
65 hostname=`/sbin/hostconfig -h -p bootparams`
68 "none") hostname="`shcat /etc/nodename 2>/dev/null`"
69 if [ -z "$hostname" ]; then
71 hostname
[all...]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DPlatformCommon.h18 extern void ReadDDNSSettingsFromConfFile(mDNS *const m, const char *const filename, domainname *const hostname, domainname *const domain, mDNSBool *DomainDiscoveryDisabled);
/illumos-gate/usr/src/cmd/hal/probing/network-printer/
H A Dprobe-snmp.c111 snmp_brother_printer_info(char *hostname, char *community, char **manufacturer, argument
123 tmp = snmp_get_string(hostname, community,
131 *serial_no = snmp_get_string(hostname, community,
139 snmp_ricoh_printer_info(char *hostname, char *community, char **manufacturer, argument
151 tmp = snmp_get_string(hostname, community,
159 *serial_no = snmp_get_string(hostname, community,
167 snmp_lexmark_printer_info(char *hostname, char *community, char **manufacturer, argument
179 tmp = snmp_get_string(hostname, community,
187 *serial_no = snmp_get_string(hostname, community,
195 snmp_xerox_phaser_printer_info(char *hostname, cha argument
257 snmp_qms_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set, char **uri) argument
294 snmp_oki_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument
322 snmp_hp_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument
350 snmp_ppm_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument
373 snmp_prt_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument
404 snmp_host_resource_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument
423 snmp_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set, char **uri) argument
479 char *hostname = av[i], *manufacturer = NULL, *model = NULL, local
[all...]
/illumos-gate/usr/src/stand/lib/sa/
H A Dunistd.c36 static char hostname[MAXHOSTNAMELEN] = "UNKNOWN"; variable
39 * Get system hostname
44 (void) strlcpy(name, hostname, MIN(namelen, MAXHOSTNAMELEN));
49 * Set system hostname
54 (void) strlcpy(hostname, name, MIN(namelen + 1, MAXHOSTNAMELEN));
/illumos-gate/usr/src/cmd/hostname/
H A DMakefile28 PROG= hostname
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Daddr_match.h42 const char *printable_addr, char *hostname, size_t hostsize);
H A Daddr_match.c92 char *hostname,
96 * We have to check for spoofing. So take hostname, look up its
107 if (getaddrinfo(hostname, NULL, &hints, &res) == 0) {
114 "the same IP address.", prog, printable_addr, hostname);
115 (void) strlcpy(hostname, printable_addr, hostsize);
87 check_address(const char *prog, const struct sockaddr_storage *fromp, const struct sockaddr_in *sin, const struct sockaddr_in6 *sin6, const char *printable_addr, char *hostname, size_t hostsize) argument
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintfraginfo.c19 printf("%s%s -> ", prefix, hostname(4, &ifr->ipfr_src));
24 hostname(4, &ifr->ipfr_dst), ifr->ipfr_id, ifr->ipfr_ttl,
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_rsvd.c39 __yp_clnt_create_rsvdport_netid_req(const char *hostname, rpcprog_t prog, argument
57 return (clnt_create(hostname, prog, vers, nt));
78 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) {
99 __yp_clnt_create_rsvdport(const char *hostname, rpcprog_t prog, argument
105 ret = __yp_clnt_create_rsvdport_netid_req(hostname, prog,
108 ret = __yp_clnt_create_rsvdport_netid_req(hostname,
112 return (__yp_clnt_create_rsvdport_netid_req(hostname, prog,
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drwall.c82 char hostname[256]; local
96 (void) gethostname(hostname, sizeof (hostname));
100 msize = snprintf(buf, sizeof (buf), "From %s@%s: ", who, hostname);
186 doit(char *hostname) argument
201 thread_hostname = strdup(hostname);
218 char *hostname = arg; local
225 (void) fprintf(stderr, "sending message to %s\n%s\n", hostname, path);
232 hostname, WALLPROG, WALLVERS, "datagram_v", &tp);
237 hostname);
[all...]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dlookup.c69 char *hostname; local
103 hostname = argv[argc - 1];
104 error = nbns_resolvename(hostname, ctx, &sap);
106 smb_error(gettext("unable to resolve %s"), error, hostname);
111 printf(gettext("IP address of %s: %s\n"), hostname,
H A Dstatus.c69 char *hostname; local
96 hostname = argv[argc - 1];
97 error = nb_resolvehost_in(hostname, &ina);
100 "unable to resolve DNS hostname %s"), error, hostname);
113 gettext("unable to get status from %s"), error, hostname);
131 printf(gettext("usage: smbutil status hostname\n"));
/illumos-gate/usr/src/cmd/getent/
H A Ddogetethers.c40 putethers(const char *hostname, const struct ether_addr *e, FILE *fp) argument
42 if (hostname == NULL || e == NULL)
45 if (fprintf(fp, "%-20s %s\n", hostname, ether_ntoa(e)) == EOF)
64 char hostname[MAXHOSTNAMELEN + 1]; local
69 hp = hostname;
/illumos-gate/usr/src/cmd/ypcmd/
H A Dstdethers.c44 * The hostname buffer must be at least as large as the line buffer
48 char line[MAXHOSTNAMELEN + 256], *lf, hostname[sizeof (line)]; local
68 if (ether_line(line, &e, hostname) == 0) {
70 hostname);
/illumos-gate/usr/src/cmd/sendmail/cf/sh/
H A Dmakeinfo.sh66 if [ -f $p/hostname ]
84 host=`hostname`
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsn2princ.c30 * Convert a hostname and service name to a principal in the "standard"
85 krb5_sname_to_principal(krb5_context context, const char *hostname, const char *sname, krb5_int32 type, krb5_principal *ret_princ) argument
94 printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type);
100 /* if hostname is NULL, use local hostname */
101 if (! hostname) {
108 hostname = localname;
115 /* copy the hostname into non-volatile storage */
139 KRB5_LOG(KRB5_INFO, "krb5_sname_to_principal() hostname %s",
140 hostname);
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dnetname.c258 * - - unix.m@y.z (hostname=m)
259 * - a.b unix.m@a.b (hostname=m)
260 * - - unix.m@y.z (hostname=m.w.x)
261 * - a.b unix.m@a.b (hostname=m.w.x)
272 char hostname[MAXHOSTNAMELEN + 1]; local
281 (void) strncpy(hostname, nis_local_host(), sizeof (hostname));
282 p = (char *)strchr(hostname, '.');
292 if (len >= sizeof (hostname)) {
295 (void) strcpy(hostname, hos
[all...]
/illumos-gate/usr/src/lib/libwrap/
H A Deval.c14 * results are really needed. Examples are hostname lookups and double
16 * given the value "unknown" ("paranoid" in case of hostname problems).
18 * When ALWAYS_HOSTNAME is off, hostname lookup is done only when required by
82 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/lib/nsswitch/ldap/common/
H A Dgethostent6.c78 * getbyname gets a struct hostent by hostname. This function constructs
89 char hostname[3 * MAXHOSTNAMELEN]; local
97 if (_ldap_filter_name(hostname, argp->key.ipnode.name,
98 sizeof (hostname)) != 0)
102 _F_GETHOSTS6BYNAME, hostname);
106 _F_GETHOSTS6BYNAME_SSD, hostname);
116 if (DOTTEDSUBDOMAIN(hostname)) {
125 (void) strcpy(hname, hostname);
138 _F_GETHOSTS6DOTTEDBYNAME, hostname, host);
143 _F_GETHOSTS6DOTTEDBYNAME_SSD, hostname, hos
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dmk_req.c60 krb5_flags ap_req_options, char *service, char *hostname,
68 retval = krb5_sname_to_principal(context, hostname, service,
59 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context, krb5_flags ap_req_options, char *service, char *hostname, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dtalkd_impl.h44 extern char hostname[];
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_handle.c70 static char *hostname; local
84 if ((hostname = strdup(u.nodename)) == (char *)NULL)
91 clnt = clnt_tp_create(hostname,
106 clnt = clnt_tp_create(hostname, GSSPROG, GSSVERS, tpconf);
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Dnetwork-discovery.h24 extern int is_listening(char *hostname, int port);
/illumos-gate/usr/src/cmd/krb5/kwarn/
H A Dkwarnd_handle.c63 static char *hostname; local
81 if ((hostname = strdup(u.nodename)) == (char *)NULL) {
90 kwarn_clnt = clnt_tp_create(hostname,
105 kwarn_clnt = clnt_tp_create(hostname, KWARNPROG, KWARNVERS,
/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPGetRefreshInterval.c53 char hostname[MAXHOSTNAMELEN]; /* name of this host */ local
65 (void) gethostname(hostname, MAXHOSTNAMELEN);
68 hostname,

Completed in 220 milliseconds

1234567891011