| /freebsd-14.2/sys/contrib/openzfs/lib/libspl/os/linux/ |
| H A D | gethostid.c | 36 unsigned long hostid; in get_spl_hostid() local 50 if (fscanf(f, "%lx", &hostid) != 1) in get_spl_hostid() 51 hostid = 0; in get_spl_hostid() 55 return (hostid); in get_spl_hostid() 61 unsigned long hostid = get_spl_hostid(); in get_system_hostid() local 70 if (hostid == 0) { in get_system_hostid() 75 hostid = 0; in get_system_hostid() 77 hostid = system_hostid; in get_system_hostid() 82 return (hostid & HOSTID_MASK); in get_system_hostid()
|
| /freebsd-14.2/lib/libc/compat-43/ |
| H A D | sethostid.c | 41 sethostid(long hostid) in sethostid() argument 47 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid); in sethostid()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp.kshlib | 73 typeset hostid=$1 77 [ $(hostid) = "$hostid" ] 145 typeset hostid=$2 148 log_must mmp_set_hostid $hostid
|
| H A D | mmp_hostid.ksh | 65 log_must mv $HOSTID_FILE $mntpnt_etc/hostid 75 log_must ln -s $mntpnt_etc/hostid $HOSTID_FILE
|
| H A D | mmp.cfg | 24 export HOSTID_FILE="/etc/hostid"
|
| /freebsd-14.2/sys/contrib/openzfs/contrib/dracut/90zfs/ |
| H A D | module-setup.sh.in | 30 hostid \ 70 if ! inst_simple -H @sysconfdir@/hostid; then 73 mark_hostonly @sysconfdir@/hostid
|
| /freebsd-14.2/contrib/bsnmp/snmpd/ |
| H A D | action.c | 93 char *hostid; in init_actvals() local 106 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) in init_actvals() 110 len += strlen(hostid) + 1; in init_actvals() 115 free(hostid); in init_actvals() 140 free(hostid); in init_actvals() 151 char *hostid; in init_snmpd_engine() local 164 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) in init_snmpd_engine() 169 hostid, SNMP_ENGINE_ID_SIZ - snmpd_engine.engine_len); in init_snmpd_engine() 173 hostid, strlen(hostid)); in init_snmpd_engine() 174 snmpd_engine.engine_len += strlen(hostid); in init_snmpd_engine() [all …]
|
| /freebsd-14.2/sbin/hastd/ |
| H A D | parse.y | 732 unsigned long hostid; variable 769 bufsize = sizeof(hostid); 770 if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) { 774 (void)snprintf(buf, sizeof(buf), "hostid%lu", hostid); 802 unsigned long hostid; in node_names() local 833 bufsize = sizeof(hostid); in node_names() 834 if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) { in node_names() 838 (void)snprintf(buf, sizeof(buf), "hostid%lu", hostid); in node_names()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/ |
| H A D | zgenhostid.c | 132 uint32_t hostid = input_i; in main() local 133 int written = fwrite(&hostid, 1, 4, fp); in main()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_status.c | 227 uint64_t hostid = 0; in check_status() local 314 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in check_status() 315 if (hostid != 0 && (unsigned long)hostid != system_hostid && in check_status()
|
| /freebsd-14.2/sys/net/ |
| H A D | if_epair.c | 570 uint64_t hostid; in epair_generate_mac() local 589 getcredhostid(curthread->td_ucred, (unsigned long *)&hostid); in epair_generate_mac() 590 if (hostid == 0) in epair_generate_mac() 591 arc4rand(&hostid, sizeof(hostid), 0); in epair_generate_mac() 602 key[1] = (uint32_t)(hostid & 0xffffffff); in epair_generate_mac() 603 key[2] = (uint32_t)((hostid >> 32) & 0xfffffffff); in epair_generate_mac()
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-generic.c | 710 hostid_read(uint32_t *hostid) in hostid_read() argument 748 *hostid = (value & HW_HOSTID_MASK); in hostid_read() 761 uint32_t hostid; in zone_get_hostid() local 768 if (hostid_read(&hostid) == 0) in zone_get_hostid() 769 return (hostid); in zone_get_hostid()
|
| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | spa_config.c | 419 unsigned long hostid = 0; in spa_config_generate() local 470 hostid = spa_get_hostid(spa); in spa_config_generate() 471 if (hostid != 0) in spa_config_generate() 472 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid); in spa_config_generate()
|
| /freebsd-14.2/sbin/pfctl/tests/files/ |
| H A D | pf0022.in | 8 set hostid 1
|
| H A D | pf0022.ok | 10 set hostid 0x00000001
|
| H A D | pf0055.in | 11 set hostid 1
|
| H A D | pf0055.ok | 22 set hostid 0x00000001
|
| /freebsd-14.2/sys/dev/altera/atse/ |
| H A D | if_atse.c | 546 unsigned long hostid; in atse_get_eth_address() local 642 getcredhostid(curthread->td_ucred, &hostid); in atse_get_eth_address() 643 if (hostid == 0) { in atse_get_eth_address() 649 sc->atse_eth_addr[1] = (hostid >> 24) & 0xff; in atse_get_eth_address() 650 sc->atse_eth_addr[2] = (hostid >> 16) & 0xff; in atse_get_eth_address() 651 sc->atse_eth_addr[3] = (hostid >> 8 ) & 0xff; in atse_get_eth_address() 652 sc->atse_eth_addr[4] = hostid & 0xff; in atse_get_eth_address()
|
| /freebsd-14.2/libexec/rc/ |
| H A D | netstart | 39 /etc/rc.d/hostid ${_start}
|
| /freebsd-14.2/sbin/nvmecontrol/ |
| H A D | resv.c | 422 e->ctrlr[i].hostid[0], e->ctrlr[i].hostid[1]); in resvreport() 432 s->ctrlr[i].hostid); in resvreport()
|
| /freebsd-14.2/libexec/rc/rc.d/ |
| H A D | hostid | 55 ${SYSCTL} kern.hostid=${id} >/dev/null
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_xxx.c | 99 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, in osethostid() 100 sizeof(uap->hostid), NULL, 0)); in osethostid()
|
| /freebsd-14.2/sys/rpc/rpcsec_gss/ |
| H A D | svc_rpcsec_gss.c | 598 unsigned long hostid; in svc_rpc_gss_find_client() local 602 getcredhostid(curthread->td_ucred, &hostid); in svc_rpc_gss_find_client() 604 if (id->ci_hostid != hostid || id->ci_boottime != boottime.tv_sec) in svc_rpc_gss_find_client() 635 unsigned long hostid; in svc_rpc_gss_create_client() local 648 getcredhostid(curthread->td_ucred, &hostid); in svc_rpc_gss_create_client() 649 client->cl_id.ci_hostid = hostid; in svc_rpc_gss_create_client()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_import.c | 514 uint64_t id, max_txg = 0, hostid = 0; in get_configs() local 627 hostid = 0; in get_configs() 629 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { in get_configs() 631 ZPOOL_CONFIG_HOSTID, hostid); in get_configs() 878 if (hostid != 0) { in get_configs() 880 hostid) == 0); in get_configs()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/ |
| H A D | zpool_import.cfg | 68 export HOSTID_FILE="/etc/hostid"
|