Lines Matching refs:netids
586 char **netids = NULL;
672 * Iterate through all the different protos/netids resulting from the
716 } else if ((netids == NULL) ||
717 ((proto = netids[ni++]) == NULL)) {
720 * we've exhausted the last set of netids, so
725 if (netids != NULL) {
726 destroy_strings(netids);
727 netids = NULL;
731 if ((netids = get_netids(protos[pi++])) ==
737 proto = netids[ni++];
1716 * Returns an allocated string array of netids corresponding with 'proto'. The
1717 * function first tries to interpret 'proto' as a nettype to get its netids.
1720 * returned, else a pointer to an array of netids associated with 'proto' is
1728 char **netids = NULL;
1738 if ((cpp = realloc(netids,
1741 netids = cpp;
1748 if ((netids = malloc(2 * sizeof (char *))) == NULL)
1750 if ((netids[0] = strdup(proto)) == NULL) {
1751 free(netids);
1754 netids[1] = NULL;
1757 return (netids);
1760 destroy_strings(netids);