Lines Matching defs:if_names
86 char **if_names;
316 * list (if_names). This function can be called as many times as needed,
324 * if_num: number of interface names in if_names arg
325 * if_names: array of interface names in string format
331 int if_num, const char **if_names)
338 if ((host == NULL) || (if_num <= 0) || (if_names == NULL))
347 ifname = (char *)if_names[i];
358 ifname += snprintf(ifname, buflen, "%s,", if_names[i]);
360 (void) snprintf(ifname, buflen, "%s", if_names[i]);
436 ifname = iflist->if_names[i];
675 iflist->if_names[iflist->if_num++] = ifname;
697 if (strcmp(iflist->if_names[j], lifrp->lifr_name) == 0)
831 iflist->if_names[iflist->if_num++] = strndup(ifnames,
835 iflist->if_names[iflist->if_num++] = strdup(ifnames);
838 if (iflist->if_names[if_num] == NULL) {
854 * in iflist->if_names array so it's initialized to 0.
864 iflist->if_names = calloc(if_num, sizeof (char *));
865 if (iflist->if_names == NULL) {
891 if (iflist->if_names != NULL) {
893 free(iflist->if_names[i]);
894 free(iflist->if_names);