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

12

/freebsd-10.0-release/lib/libc/compat-43/
H A Dsethostid.c42 sethostid(long hostid) argument
48 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
/freebsd-10.0-release/etc/
H A Dnetstart43 /etc/rc.d/hostid ${_start}
/freebsd-10.0-release/etc/rc.d/
H A Dhostid30 # 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 DMakefile53 hostid \
/freebsd-10.0-release/contrib/bsnmp/snmpd/
H A Daction.c115 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.0-release/sbin/hastd/
H A Dparse.y732 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.0-release/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.c448 uint64_t hostid; local
531 * hostid (if available)
560 hostid = 0;
562 ZPOOL_CONFIG_HOSTID, &hostid) == 0) {
564 ZPOOL_CONFIG_HOSTID, hostid);
803 if (hostid != 0) {
805 hostid) == 0);
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dspa_config.c362 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.0-release/sys/kern/
H A Dkern_xxx.c118 long hostid; member in struct:osethostid_args
131 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid,
132 sizeof(uap->hostid), NULL, 0));
H A Dkern_mib.c403 * instead of a string, and is used only for hostid.
428 SYSCTL_PROC(_kern, KERN_HOSTID, hostid,
/freebsd-10.0-release/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-10.0-release/sys/compat/svr4/
H A Dsvr4_stat.c418 u_long hostid; local
462 getcredhostid(td->td_ucred, &hostid);
463 snprintf(buf, sizeof(buf), "%lu", hostid);
/freebsd-10.0-release/sys/rpc/rpcsec_gss/
H A Dsvc_rpcsec_gss.c510 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.0-release/sbin/pfctl/
H A Dpfctl_parser.h95 u_int32_t hostid; member in struct:pfctl
H A Dpfctl.c1634 /* load hostid */
1636 if (pfctl_load_hostid(pf, pf->hostid))
1799 pfctl_set_hostid(struct pfctl *pf, u_int32_t hostid) argument
1804 HTONL(hostid);
1806 pf->hostid = hostid;
1810 printf("set hostid 0x%08x\n", ntohl(hostid));
1816 pfctl_load_hostid(struct pfctl *pf, u_int32_t hostid) argument
1818 if (ioctl(dev, DIOCSETHOSTID, &hostid)) {
[all...]
/freebsd-10.0-release/sys/dev/altera/atse/
H A Dif_atse.c609 unsigned long hostid; local
703 getcredhostid(curthread->td_ucred, &hostid);
704 if (hostid == 0) {
710 sc->atse_eth_addr[1] = (hostid >> 24) & 0xff;
711 sc->atse_eth_addr[2] = (hostid >> 16) & 0xff;
712 sc->atse_eth_addr[3] = (hostid >> 8 ) & 0xff;
713 sc->atse_eth_addr[4] = hostid & 0xff;
/freebsd-10.0-release/sys/netinet6/
H A Din6.c1612 * add the specified prefix, filling hostid part from
1678 struct in6_addr *hostid = NULL; local
1686 * hostid is to fill in the hostid part of the
1687 * address. hostid points to the first link-local
1693 hostid = IFA_IN6(ifa);
1703 /* hostid part must be zero. */
1720 if (hostid) {
1721 /* fill in hostid part */
1723 hostid
[all...]
/freebsd-10.0-release/sys/dev/ips/
H A Dipsreg.h390 u_int8_t hostid[12]; member in struct:__anon8545
/freebsd-10.0-release/sys/net/
H A Dif_bridge.c585 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.0-release/sys/dev/ncv/
H A Dncr53c500.c548 ncv_setup_img(hw, dvcfg, hostid)
551 int hostid;
586 hw->hw_cfg1 = (hw->hw_cfg1 & 0xf0) | hostid;
/freebsd-10.0-release/sys/dev/ct/
H A Dct.c188 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.0-release/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)];
1368 dpt->hostid[0] = conf.scsi_id0;
1369 dpt->hostid[1] = conf.scsi_id1;
1370 dpt->hostid[2] = conf.scsi_id2;
/freebsd-10.0-release/sys/netpfil/pf/
H A Dpf_ioctl.c255 V_pf_status.hostid = arc4random();
1602 pfsync_clear_states_ptr(V_pf_status.hostid, psk->psk_ifname);
1616 psk->psk_pfcmp.creatorid = V_pf_status.hostid;
3184 u_int32_t *hostid = (u_int32_t *)addr; local
3187 if (*hostid == 0)
3188 V_pf_status.hostid = arc4random();
3190 V_pf_status.hostid = *hostid;

Completed in 426 milliseconds

12