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

12

/freebsd-10.1-release/lib/libc/compat-43/
H A Dsethostid.c42 sethostid(long hostid) argument
48 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
/freebsd-10.1-release/etc/
H A Dnetstart43 /etc/rc.d/hostid ${_start}
/freebsd-10.1-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 DMakefile56 hostid \
/freebsd-10.1-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.1-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.1-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.c452 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 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.1-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));
/freebsd-10.1-release/sys/netpfil/pf/
H A Dpf.h197 uint32_t hostid; member in struct:pf_status
H A Dpf_ioctl.c262 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 Dfunctions-cleanup.sh79 # 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 Dsvr4_stat.c418 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 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.1-release/sbin/pfctl/
H A Dpfctl_parser.h95 u_int32_t hostid; member in struct:pfctl
H A Dpfctl.c1635 /* 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 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-10.1-release/sys/netinet6/
H A Din6.c1607 * 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 Dipsreg.h390 u_int8_t hostid[12]; member in struct:__anon8766
/freebsd-10.1-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.1-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.1-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.1-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;

Completed in 423 milliseconds

12