hostinfo
if (!hostinfo && spcl.c_host[0] != '\0') {
hostinfo++;
static int hostinfo; /* Have dump host information */
if (hostinfo) {
struct hostent *hostinfo;
if ((hostinfo = getipnodebyname(hostname, family, flags,
for (hostptr = hostinfo->h_addr_list; *hostptr; hostptr++) {
freehostent(hostinfo);
iscsit_hostinfo_t hostinfo;
bzero(hostinfo.fqhn, sizeof (hostinfo.fqhn));
fqhnp = &hostinfo.fqhn[0];
if ((ret != -1) && (ret < sizeof (hostinfo.fqhn))) {
hostinfo.length = ret;
hostinfo.fqhn[ret-1] = '.';
hostinfo.length += sysinfo(SI_SRPC_DOMAIN, fqhnp,
sizeof (hostinfo.fqhn) - ret);
(void) fprintf(stdout, "it_enable: fqhn = '%s'\n", hostinfo.fqhn);
if ((ret = ioctl(fd, ISCSIT_IOC_ENABLE_SVC, &hostinfo)) != 0) {
char *hostinfo = eval_hostinfo(request->client);
return (hostinfo);
sprintf(both, "%s@%s", request->user, hostinfo);
return (hostinfo);
static idm_status_t iscsit_enable_svc(iscsit_hostinfo_t *hostinfo);
iscsit_hostinfo_t hostinfo;
if (ddi_copyin((void *)argp, &hostinfo.length,
sizeof (hostinfo.length), flag) != 0) {
if (hostinfo.length > sizeof (hostinfo.fqhn))
hostinfo.length = sizeof (hostinfo.fqhn);
sizeof (hostinfo.length)), &hostinfo.fqhn,
hostinfo.length, flag) != 0) {
idmrc = iscsit_enable_svc(&hostinfo);
iscsit_enable_svc(iscsit_hostinfo_t *hostinfo)
(void) iscsit_isns_init(hostinfo);
iscsit_isns_init(iscsit_hostinfo_t *hostinfo)
if (hostinfo->length > ISCSIT_MAX_HOSTNAME_LEN)
hostinfo->length = ISCSIT_MAX_HOSTNAME_LEN;
isns_eid = kmem_alloc(hostinfo->length, KM_SLEEP);
(void) strlcpy(isns_eid, hostinfo->fqhn, hostinfo->length);
int iscsit_isns_init(iscsit_hostinfo_t *hostinfo);
uint8_t entryn, hostinfo_t *hostinfo)
hostinfo->value);
hostinfo->value);
&hostinfo->value);
&hostinfo->value);
hostinfo.value = 0;
hostinfo.bits.w0.rdc_tbl_num = p_cfgp->def_mac_rxdma_grpid;
hostinfo.bits.w0.mac_pref = p_cfgp->mac_pref;
hostinfo.bits.w0.rdc_tbl_num =
hostinfo.bits.w0.mac_pref =
nxgep->function_num, i, &hostinfo);
hostinfo_t hostinfo;
hostinfo_t hostinfo[MAC_MAX_HOST_INFO_ENTRY];
typedef union hostinfo *hostinfo_pt;