/freebsd-10.1-release/lib/libc/compat-43/ |
H A D | sethostid.c | 42 sethostid(long hostid) argument 48 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
|
/freebsd-10.1-release/etc/ |
H A D | netstart | 43 /etc/rc.d/hostid ${_start}
|
/freebsd-10.1-release/etc/rc.d/ |
H A D | hostid | 30 # PROVIDE: hostid 36 name="hostid" 46 # Generate hostid based on hostuuid - take first four bytes from md5(uuid). 50 # Set both kern.hostuuid and kern.hostid. 54 check_startmsgs && echo "Setting hostid: ${id}." 55 ${SYSCTL} kern.hostid=${id} >/dev/null 97 # No hostid file, generate UUID.
|
H A D | Makefile | 56 hostid \
|
/freebsd-10.1-release/contrib/bsnmp/snmpd/ |
H A D | action.c | 115 char *hostid; local 128 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) 132 len += strlen(hostid) + 1; 137 free(hostid); 140 sprintf(systemg.descr, "%s %s %s %s", uts.nodename, hostid, uts.sysname, 162 free(hostid); 173 char *hostid; local 186 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) 189 if (strlen(hostid) > SNMP_ENGINE_ID_SIZ - snmpd_engine.engine_len) { 191 hostid, SNMP_ENGINE_ID_SI [all...] |
/freebsd-10.1-release/sbin/hastd/ |
H A D | parse.y | 732 unsigned long hostid; 767 * Check if it matches hostid. 769 bufsize = sizeof(hostid); 770 if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) { 771 pjdlog_errno(LOG_ERR, "sysctlbyname(kern.hostid) failed"); 774 (void)snprintf(buf, sizeof(buf), "hostid%lu", hostid); 802 unsigned long hostid; 833 bufsize = sizeof(hostid); [all...] |
/freebsd-10.1-release/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 | 452 uint64_t hostid; local 535 * hostid (if available) 564 hostid = 0; 566 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { 568 ZPOOL_CONFIG_HOSTID, hostid); 807 if (hostid != 0) { 809 hostid) == 0);
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa_config.c | 362 unsigned long hostid = 0; local 398 hostid = zone_get_hostid(NULL); 401 * We're emulating the system's hostid in userland, so we can't use 404 (void) ddi_strtoul(hw_serial, NULL, 10, &hostid); 406 if (hostid != 0) { 408 hostid) == 0);
|
/freebsd-10.1-release/sys/kern/ |
H A D | kern_xxx.c | 118 long hostid; member in struct:osethostid_args 131 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, 132 sizeof(uap->hostid), NULL, 0));
|
/freebsd-10.1-release/sys/netpfil/pf/ |
H A D | pf.h | 197 uint32_t hostid; member in struct:pf_status
|
H A D | pf_ioctl.c | 262 V_pf_status.hostid = arc4random(); 1633 pfsync_clear_states_ptr(V_pf_status.hostid, psk->psk_ifname); 1647 psk->psk_pfcmp.creatorid = V_pf_status.hostid; 1798 s->hostid = V_pf_status.hostid; 3198 u_int32_t *hostid = (u_int32_t *)addr; local 3201 if (*hostid == 0) 3202 V_pf_status.hostid = arc4random(); 3204 V_pf_status.hostid = *hostid; [all...] |
/freebsd-10.1-release/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-10.1-release/sys/compat/svr4/ |
H A D | svr4_stat.c | 418 u_long hostid; local 462 getcredhostid(td->td_ucred, &hostid); 463 snprintf(buf, sizeof(buf), "%lu", hostid);
|
/freebsd-10.1-release/sys/rpc/rpcsec_gss/ |
H A D | svc_rpcsec_gss.c | 510 unsigned long hostid; local 514 getcredhostid(curthread->td_ucred, &hostid); 515 if (id->ci_hostid != hostid || id->ci_boottime != boottime.tv_sec) 543 unsigned long hostid; local 551 getcredhostid(curthread->td_ucred, &hostid); 552 client->cl_id.ci_hostid = hostid;
|
/freebsd-10.1-release/sbin/pfctl/ |
H A D | pfctl_parser.h | 95 u_int32_t hostid; member in struct:pfctl
|
H A D | pfctl.c | 1635 /* load hostid */ 1637 if (pfctl_load_hostid(pf, pf->hostid)) 1800 pfctl_set_hostid(struct pfctl *pf, u_int32_t hostid) argument 1805 HTONL(hostid); 1807 pf->hostid = hostid; 1811 printf("set hostid 0x%08x\n", ntohl(hostid)); 1817 pfctl_load_hostid(struct pfctl *pf, u_int32_t hostid) argument 1819 if (ioctl(dev, DIOCSETHOSTID, &hostid)) { [all...] |
/freebsd-10.1-release/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-10.1-release/sys/netinet6/ |
H A D | in6.c | 1607 * add the specified prefix, filling hostid part from 1673 struct in6_addr *hostid = NULL; local 1681 * hostid is to fill in the hostid part of the 1682 * address. hostid points to the first link-local 1688 hostid = IFA_IN6(ifa); 1698 /* hostid part must be zero. */ 1715 if (hostid) { 1716 /* fill in hostid part */ 1718 hostid [all...] |
/freebsd-10.1-release/sys/dev/ips/ |
H A D | ipsreg.h | 390 u_int8_t hostid[12]; member in struct:__anon8766
|
/freebsd-10.1-release/sys/net/ |
H A D | if_bridge.c | 585 unsigned long hostid; local 621 * The first try uses the hostid and falls back to arc4rand(). 624 getcredhostid(curthread->td_ucred, &hostid); 626 if (fb || hostid == 0) { 632 sc->sc_defaddr[1] = (hostid >> 24) & 0xff; 633 sc->sc_defaddr[2] = (hostid >> 16) & 0xff; 634 sc->sc_defaddr[3] = (hostid >> 8 ) & 0xff; 635 sc->sc_defaddr[4] = hostid & 0xff;
|
/freebsd-10.1-release/sys/dev/ncv/ |
H A D | ncr53c500.c | 548 ncv_setup_img(hw, dvcfg, hostid) 551 int hostid; 586 hw->hw_cfg1 = (hw->hw_cfg1 & 0xf0) | hostid;
|
/freebsd-10.1-release/sys/dev/ct/ |
H A D | ct.c | 188 int hostid) 229 regv |= IDR_EHP | hostid | IDR_RAF | IDR_EAF; 187 cthw_chip_reset(struct ct_bus_access_handle *chp, int *chiprevp, int chipclk, int hostid) argument
|
/freebsd-10.1-release/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)]; 1368 dpt->hostid[0] = conf.scsi_id0; 1369 dpt->hostid[1] = conf.scsi_id1; 1370 dpt->hostid[2] = conf.scsi_id2;
|