Lines Matching refs:cp
144 char *cp;
148 if (nvlist_lookup_string(nvl, IPADM_NVP_IPADDRHNAME, &cp) != 0)
150 (void) strlcat(buf, cp, buflen); /* local hostname */
153 if (nvlist_lookup_string(nvl, IPADM_NVP_IPDADDRHNAME, &cp) != 0) {
157 (void) snprintf(tmpbuf, sizeof (tmpbuf), ",%s", cp);
490 char *cp, *hname;
499 cp = strchr(hname, ',');
500 assert(cp != NULL);
501 *cp++ = '\0';
505 if (*cp != '\0') {
507 (void) strlcpy(ipaddr.ipadm_static_dname, cp,
523 char *cp, *hname;
532 cp = strchr(hname, ',');
533 assert(cp != NULL);
534 *cp++ = '\0';
538 if (*cp != '\0') {
540 (void) strlcpy(ipaddr.ipadm_static_dname, cp,
554 char *cp;
565 cp = strchr(value, '/');
566 assert(cp != NULL);
568 *cp++ = '\0';
572 prefixlen = cp;
573 cp = strchr(cp, ',');
574 assert(cp != NULL);
575 *cp++ = '\0';
582 stateless = cp;
601 char *cp;
607 cp = strchr(value, ',');
608 assert(cp != NULL);
609 *cp++ = '\0';
614 primary = (strcmp(cp, "yes") == 0);
625 char *nv, *name, *val, *buf, *cp, *sep;
638 if ((cp = buf = strdup(inbuf)) == NULL)
670 free(cp);
673 free(cp);