Lines Matching refs:netids
584 char **netids = NULL;
670 * Iterate through all the different protos/netids resulting from the
714 } else if ((netids == NULL) ||
715 ((proto = netids[ni++]) == NULL)) {
718 * we've exhausted the last set of netids, so
723 if (netids != NULL) {
724 destroy_strings(netids);
725 netids = NULL;
729 if ((netids = get_netids(protos[pi++])) ==
735 proto = netids[ni++];
1713 * Returns an allocated string array of netids corresponding with 'proto'. The
1714 * function first tries to interpret 'proto' as a nettype to get its netids.
1717 * returned, else a pointer to an array of netids associated with 'proto' is
1725 char **netids = NULL;
1735 if ((cpp = realloc(netids,
1738 netids = cpp;
1745 if ((netids = malloc(2 * sizeof (char *))) == NULL)
1747 if ((netids[0] = strdup(proto)) == NULL) {
1748 free(netids);
1751 netids[1] = NULL;
1754 return (netids);
1757 destroy_strings(netids);