Lines Matching refs:portstr
120 write_port(dladm_handle_t handle, char *portstr, datalink_id_t portid,
130 if (strlcat(portstr, pname, portstrsize) >= portstrsize)
136 read_port(dladm_handle_t handle, char **portstr, datalink_id_t *portid)
141 if ((pname = strtok(*portstr, PORT_DELIMITER)) == NULL)
143 *portstr += (strlen(pname) + 1);
271 char *portstr = NULL, *next;
336 if ((portstr = calloc(1, size)) == NULL) {
341 status = dladm_get_conf_field(handle, conf, FPORTS, portstr, size);
351 for (next = portstr, i = 0; i < nports; i++) {
358 free(portstr);
381 char *orig_portstr = NULL, *portstr = NULL;
451 if ((portstr = calloc(1, size)) == NULL) {
458 * portstr.
461 (void) strlcpy(portstr, orig_portstr, size);
463 status = write_port(handle, portstr,
466 free(portstr);
482 free(portstr);
495 status = write_port(handle, portstr,
498 free(portstr);
507 free(portstr);
516 free(portstr);
521 DLADM_TYPE_STR, portstr);
522 free(portstr);
1016 char *portstr = NULL;
1040 if ((portstr = calloc(1, size)) == NULL) {
1046 status = write_port(handle, portstr, ports[i].lp_linkid, size);
1048 free(portstr);
1053 portstr);
1054 free(portstr);