Lines Matching refs:hostidp
2379 * 'hostidp' is NULL, Z_TOO_BIG if 'hostidp' refers to a string buffer
2384 zonecfg_valid_hostid(const char *hostidp)
2390 if (hostidp == NULL)
2394 if (*hostidp == '\0')
2396 for (currentp = (char *)hostidp; *currentp != '\0'; ++currentp) {
2400 len = (size_t)(currentp - hostidp);
2409 currentp = (char *)hostidp;
2410 if (strncmp(hostidp, "0x", 2) == 0 || strncmp(hostidp, "0X", 2) == 0)
2413 if ((size_t)(currentp - hostidp) >= HW_HOSTID_LEN)
2416 currentp != hostidp + len)
2442 * string value. If 'hostidp' is NULL, then the config document's hostid
2447 zonecfg_set_hostid(zone_dochandle_t handle, const char *hostidp)
2455 if (hostidp == NULL || (err = zonecfg_valid_hostid(hostidp)) == Z_OK)
2456 return (setrootattr(handle, DTD_ATTR_HOSTID, hostidp));