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

12

/freebsd-11-stable/lib/libc/compat-43/
H A Dsethostid.c42 sethostid(long hostid) argument
48 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
/freebsd-11-stable/etc/
H A Dnetstart40 /etc/rc.d/hostid ${_start}
/freebsd-11-stable/etc/rc.d/
H A Dhostid31 # PROVIDE: hostid
37 name="hostid"
48 # Generate hostid based on hostuuid - take first four bytes from md5(uuid).
52 # Set both kern.hostuuid and kern.hostid.
56 check_startmsgs && echo "Setting hostid: ${id}."
57 ${SYSCTL} kern.hostid=${id} >/dev/null
118 warn "hostid: unable to figure out a UUID from DMI data, generating a new one"
147 # No hostid file, generate UUID.
H A DMakefile43 hostid \
/freebsd-11-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-11-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-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_status.c206 uint64_t hostid = 0; local
229 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid);
230 if (hostid != 0 && (unsigned long)hostid != gethostid() &&
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-11-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));
H A Dkern_mib.c428 * instead of a string, and is used only for hostid.
453 SYSCTL_PROC(_kern, KERN_HOSTID, hostid,
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf.h198 uint32_t hostid; member in struct:pf_status
H A Dpf_ioctl.c276 V_pf_status.hostid = arc4random();
1650 V_pfsync_clear_states_ptr(V_pf_status.hostid, psk->psk_ifname);
1664 psk->psk_pfcmp.creatorid = V_pf_status.hostid;
1815 s->hostid = V_pf_status.hostid;
3433 u_int32_t *hostid = (u_int32_t *)addr; local
3436 if (*hostid == 0)
3437 V_pf_status.hostid = arc4random();
3439 V_pf_status.hostid = *hostid;
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dspa_config.c390 unsigned long hostid = 0; local
439 hostid = zone_get_hostid(NULL);
441 if (hostid != 0) {
442 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);
/freebsd-11-stable/usr.sbin/pc-sysinstall/backend/
H A Dfunctions-cleanup.sh79 # Copy the hostid so that our zfs cache works
80 cp /etc/hostid ${FSMNT}/etc/hostid
/freebsd-11-stable/sys/compat/svr4/
H A Dsvr4_stat.c422 u_long hostid; local
466 getcredhostid(td->td_ucred, &hostid);
467 snprintf(buf, sizeof(buf), "%lu", hostid);
/freebsd-11-stable/sys/rpc/rpcsec_gss/
H A Dsvc_rpcsec_gss.c526 unsigned long hostid; local
530 getcredhostid(curthread->td_ucred, &hostid);
532 if (id->ci_hostid != hostid || id->ci_boottime != boottime.tv_sec)
561 unsigned long hostid; local
574 getcredhostid(curthread->td_ucred, &hostid);
575 client->cl_id.ci_hostid = hostid;
/freebsd-11-stable/sbin/pfctl/
H A Dpfctl_parser.h97 u_int32_t hostid; member in struct:pfctl
H A Dpfctl.c1736 /* load hostid */
1738 if (pfctl_load_hostid(pf, pf->hostid))
1901 pfctl_set_hostid(struct pfctl *pf, u_int32_t hostid) argument
1906 HTONL(hostid);
1908 pf->hostid = hostid;
1912 printf("set hostid 0x%08x\n", ntohl(hostid));
1918 pfctl_load_hostid(struct pfctl *pf, u_int32_t hostid) argument
1920 if (ioctl(dev, DIOCSETHOSTID, &hostid)) {
[all...]
/freebsd-11-stable/sys/dev/altera/atse/
H A Dif_atse.c645 unsigned long hostid; local
739 getcredhostid(curthread->td_ucred, &hostid);
740 if (hostid == 0) {
746 sc->atse_eth_addr[1] = (hostid >> 24) & 0xff;
747 sc->atse_eth_addr[2] = (hostid >> 16) & 0xff;
748 sc->atse_eth_addr[3] = (hostid >> 8 ) & 0xff;
749 sc->atse_eth_addr[4] = hostid & 0xff;
/freebsd-11-stable/sys/dev/ips/
H A Dipsreg.h390 u_int8_t hostid[12]; member in struct:__anon10317
/freebsd-11-stable/sys/dev/ncv/
H A Dncr53c500.c514 ncv_setup_img(hw, dvcfg, hostid)
517 int hostid;
552 hw->hw_cfg1 = (hw->hw_cfg1 & 0xf0) | hostid;
/freebsd-11-stable/sys/net/
H A Dif_bridge.c637 unsigned long hostid; local
673 * The first try uses the hostid and falls back to arc4rand().
676 getcredhostid(curthread->td_ucred, &hostid);
678 if (fb || hostid == 0) {
682 sc->sc_defaddr.octet[1] = (hostid >> 24) & 0xff;
683 sc->sc_defaddr.octet[2] = (hostid >> 16) & 0xff;
684 sc->sc_defaddr.octet[3] = (hostid >> 8 ) & 0xff;
685 sc->sc_defaddr.octet[4] = hostid & 0xff;
/freebsd-11-stable/sys/dev/ct/
H A Dct.c190 int hostid)
231 regv |= IDR_EHP | hostid | IDR_RAF | IDR_EAF;
189 cthw_chip_reset(struct ct_bus_access_handle *chp, int *chiprevp, int chipclk, int hostid) argument
/freebsd-11-stable/sys/dev/dpt/
H A Ddpt.h1126 u_int8_t hostid[MAX_CHANNELS]; /* SCSI ID of HBA */ member in struct:dpt_softc
1213 u_int8_t hostid[MAX_CHANNELS]; member in struct:dpt_user_softc
H A Ddpt_scsi.c869 ccb->ccb_h.target_id == dpt->hostid[cam_sim_bus(sim)]
1027 cpi->initiator_id = dpt->hostid[cam_sim_bus(sim)];
1367 dpt->hostid[0] = conf.scsi_id0;
1368 dpt->hostid[1] = conf.scsi_id1;
1369 dpt->hostid[2] = conf.scsi_id2;

Completed in 419 milliseconds

12