Searched refs:hostid (Results 1 - 25 of 39) sorted by relevance

12

/freebsd-12-stable/lib/libc/compat-43/
H A Dsethostid.c44 sethostid(long hostid) argument
50 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
/freebsd-12-stable/libexec/rc/
H A Dnetstart40 /etc/rc.d/hostid ${_start}
/freebsd-12-stable/libexec/rc/rc.d/
H A Dhostid30 # 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 DMakefile43 hostid \
/freebsd-12-stable/contrib/bsnmp/snmpd/
H A Daction.c93 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 Dparse.y734 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 Dlibzfs_status.c222 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 Dlibzfs_import.c455 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 Dkern_xxx.c112 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 Dspa_config.c390 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 Dfunctions-cleanup.sh81 # Copy the hostid so that our zfs cache works
82 cp /etc/hostid ${FSMNT}/etc/hostid
/freebsd-12-stable/sys/net/
H A Dif_epair.c736 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 Dresv.c420 e->ctrlr[i].hostid[0], e->ctrlr[i].hostid[1]);
430 s->ctrlr[i].hostid);
/freebsd-12-stable/sys/dev/altera/atse/
H A Dif_atse.c557 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 Dsvc_rpcsec_gss.c529 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 Dpfctl_parser.h100 u_int32_t hostid; member in struct:pfctl
H A Dpfctl.c1812 /* 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 Dipsreg.h392 u_int8_t hostid[12]; member in struct:__anon13303
/freebsd-12-stable/sys/dev/ncv/
H A Dncr53c500.c516 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 Dnvme.h1452 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 Dzpool_main.c1968 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 Dpf.h233 uint32_t hostid; member in struct:pf_status
H A Dpf_ioctl.c342 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 Ddpt.h1110 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 Ddpt_scsi.c759 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;

Completed in 508 milliseconds

12