/freebsd-11-stable/lib/libc/compat-43/ |
H A D | sethostid.c | 42 sethostid(long hostid) argument 48 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
|
/freebsd-11-stable/etc/ |
H A D | netstart | 40 /etc/rc.d/hostid ${_start}
|
/freebsd-11-stable/etc/rc.d/ |
H A D | hostid | 31 # 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 D | Makefile | 43 hostid \
|
/freebsd-11-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-11-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-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_status.c | 206 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 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-11-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));
|
H A D | kern_mib.c | 428 * 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 D | pf.h | 198 uint32_t hostid; member in struct:pf_status
|
H A D | pf_ioctl.c | 276 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 D | spa_config.c | 390 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 D | functions-cleanup.sh | 79 # Copy the hostid so that our zfs cache works 80 cp /etc/hostid ${FSMNT}/etc/hostid
|
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_stat.c | 422 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 D | svc_rpcsec_gss.c | 526 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 D | pfctl_parser.h | 97 u_int32_t hostid; member in struct:pfctl
|
H A D | pfctl.c | 1736 /* 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 D | if_atse.c | 645 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 D | ipsreg.h | 390 u_int8_t hostid[12]; member in struct:__anon10317
|
/freebsd-11-stable/sys/dev/ncv/ |
H A D | ncr53c500.c | 514 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 D | if_bridge.c | 637 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 D | ct.c | 190 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 D | dpt.h | 1126 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 D | dpt_scsi.c | 869 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;
|