/freebsd-12-stable/lib/libc/compat-43/ |
H A D | sethostid.c | 44 sethostid(long hostid) argument 50 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
|
/freebsd-12-stable/libexec/rc/ |
H A D | netstart | 40 /etc/rc.d/hostid ${_start}
|
/freebsd-12-stable/libexec/rc/rc.d/ |
H A D | hostid | 30 # PROVIDE: hostid 36 name="hostid" 47 # Generate hostid based on hostuuid - take first four bytes from md5(uuid). 51 # Set both kern.hostuuid and kern.hostid. 55 check_startmsgs && echo "Setting hostid: ${id}." 56 ${SYSCTL} kern.hostid=${id} >/dev/null 117 warn "hostid: unable to figure out a UUID from DMI data, generating a new one" 146 # No hostid file, generate UUID.
|
H A D | Makefile | 43 hostid \
|
/freebsd-12-stable/contrib/bsnmp/snmpd/ |
H A D | action.c | 93 char *hostid; local 106 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) 110 len += strlen(hostid) + 1; 115 free(hostid); 118 sprintf(systemg.descr, "%s %s %s %s", uts.nodename, hostid, uts.sysname, 140 free(hostid); 151 char *hostid; local 164 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) 167 if (strlen(hostid) > SNMP_ENGINE_ID_SIZ - snmpd_engine.engine_len) { 169 hostid, SNMP_ENGINE_ID_SI [all...] |
/freebsd-12-stable/sbin/hastd/ |
H A D | parse.y | 734 unsigned long hostid; 769 * Check if it matches hostid. 771 bufsize = sizeof(hostid); 772 if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) { 773 pjdlog_errno(LOG_ERR, "sysctlbyname(kern.hostid) failed"); 776 (void)snprintf(buf, sizeof(buf), "hostid%lu", hostid); 804 unsigned long hostid; 835 bufsize = sizeof(hostid); [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_status.c | 222 uint64_t hostid = 0; local 266 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); 267 if (hostid != 0 && (unsigned long)hostid != system_hostid &&
|
H A D | libzfs_import.c | 455 uint64_t hostid; local 538 * hostid (if available) 567 hostid = 0; 569 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { 571 ZPOOL_CONFIG_HOSTID, hostid); 818 if (hostid != 0) { 820 hostid) == 0);
|
/freebsd-12-stable/sys/kern/ |
H A D | kern_xxx.c | 112 long hostid; member in struct:osethostid_args 123 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, 124 sizeof(uap->hostid), NULL, 0));
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa_config.c | 390 unsigned long hostid = 0; local 439 hostid = spa_get_hostid(); 440 if (hostid != 0) { 441 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);
|
/freebsd-12-stable/usr.sbin/pc-sysinstall/backend/ |
H A D | functions-cleanup.sh | 81 # Copy the hostid so that our zfs cache works 82 cp /etc/hostid ${FSMNT}/etc/hostid
|
/freebsd-12-stable/sys/net/ |
H A D | if_epair.c | 736 uint64_t hostid; local 843 * Calculate the etheraddr hashing the hostid and the 850 getcredhostid(curthread->td_ucred, (unsigned long *)&hostid); 851 if (hostid == 0) 852 arc4rand(&hostid, sizeof(hostid), 0); 860 key[1] = (uint32_t)(hostid & 0xffffffff); 861 key[2] = (uint32_t)((hostid >> 32) & 0xfffffffff);
|
/freebsd-12-stable/sbin/nvmecontrol/ |
H A D | resv.c | 420 e->ctrlr[i].hostid[0], e->ctrlr[i].hostid[1]); 430 s->ctrlr[i].hostid);
|
/freebsd-12-stable/sys/dev/altera/atse/ |
H A D | if_atse.c | 557 unsigned long hostid; local 654 getcredhostid(curthread->td_ucred, &hostid); 655 if (hostid == 0) { 661 sc->atse_eth_addr[1] = (hostid >> 24) & 0xff; 662 sc->atse_eth_addr[2] = (hostid >> 16) & 0xff; 663 sc->atse_eth_addr[3] = (hostid >> 8 ) & 0xff; 664 sc->atse_eth_addr[4] = hostid & 0xff;
|
/freebsd-12-stable/sys/rpc/rpcsec_gss/ |
H A D | svc_rpcsec_gss.c | 529 unsigned long hostid; local 533 getcredhostid(curthread->td_ucred, &hostid); 535 if (id->ci_hostid != hostid || id->ci_boottime != boottime.tv_sec) 564 unsigned long hostid; local 577 getcredhostid(curthread->td_ucred, &hostid); 578 client->cl_id.ci_hostid = hostid;
|
/freebsd-12-stable/sbin/pfctl/ |
H A D | pfctl_parser.h | 100 u_int32_t hostid; member in struct:pfctl
|
H A D | pfctl.c | 1812 /* load hostid */ 1814 if (pfctl_load_hostid(pf, pf->hostid)) 1981 pfctl_set_hostid(struct pfctl *pf, u_int32_t hostid) argument 1986 HTONL(hostid); 1988 pf->hostid = hostid; 1992 printf("set hostid 0x%08x\n", ntohl(hostid)); 1998 pfctl_load_hostid(struct pfctl *pf, u_int32_t hostid) argument 2000 if (ioctl(dev, DIOCSETHOSTID, &hostid)) { [all...] |
/freebsd-12-stable/sys/dev/ips/ |
H A D | ipsreg.h | 392 u_int8_t hostid[12]; member in struct:__anon13303
|
/freebsd-12-stable/sys/dev/ncv/ |
H A D | ncr53c500.c | 516 ncv_setup_img(hw, dvcfg, hostid) 519 int hostid; 554 hw->hw_cfg1 = (hw->hw_cfg1 & 0xf0) | hostid;
|
/freebsd-12-stable/sys/dev/nvme/ |
H A D | nvme.h | 1452 uint64_t hostid; /* Host Identifier */ member in struct:nvme_resv_reg_ctrlr 1464 uint64_t hostid[2]; /* Host Identifier */ member in struct:nvme_resv_reg_ctrlr_ext 2004 s->ctrlr[i].hostid = le64toh(s->ctrlr[i].hostid); 2023 nvme_le128toh((void *)s->ctrlr[i].hostid);
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_main.c | 1968 uint64_t hostid = 0; local 2066 "when the system hostid is not set.\n")); 2164 hostid = fnvlist_lookup_uint64(nvinfo, 2168 "exported from %s (hostid=%lx)\n\tbefore it " 2170 (unsigned long) hostid); 2174 "svc:/system/hostid service.\n")); 2229 uint64_t hostid = 0; local 2233 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); 2235 if (state != POOL_STATE_EXPORTED && hostid != get_system_hostid()) 2282 uint64_t hostid local 2304 uint64_t hostid = 0; local [all...] |
/freebsd-12-stable/sys/netpfil/pf/ |
H A D | pf.h | 233 uint32_t hostid; member in struct:pf_status
|
H A D | pf_ioctl.c | 342 V_pf_status.hostid = arc4random(); 2900 s->hostid = V_pf_status.hostid; 4519 u_int32_t *hostid = (u_int32_t *)addr; local 4522 if (*hostid == 0) 4523 V_pf_status.hostid = arc4random(); 4525 V_pf_status.hostid = *hostid; 4896 V_pfsync_clear_states_ptr(V_pf_status.hostid, kill->psk_ifname); 4908 kill->psk_pfcmp.creatorid = V_pf_status.hostid; [all...] |
/freebsd-12-stable/sys/dev/dpt/ |
H A D | dpt.h | 1110 u_int8_t hostid[MAX_CHANNELS]; /* SCSI ID of HBA */ member in struct:dpt_softc 1196 u_int8_t hostid[MAX_CHANNELS]; member in struct:dpt_user_softc
|
H A D | dpt_scsi.c | 759 ccb->ccb_h.target_id == dpt->hostid[cam_sim_bus(sim)] 917 cpi->initiator_id = dpt->hostid[cam_sim_bus(sim)]; 1255 dpt->hostid[0] = conf.scsi_id0; 1256 dpt->hostid[1] = conf.scsi_id1; 1257 dpt->hostid[2] = conf.scsi_id2;
|