Lines Matching defs:if_num
87 int if_num;
324 * if_num: number of interface names in if_names arg
331 int if_num, const char **if_names)
338 if ((host == NULL) || (if_num <= 0) || (if_names == NULL))
346 for (i = 0; i < if_num; i++) {
357 for (i = 0; i < if_num - 1; i++)
435 for (i = 0; i < iflist->if_num; i++) {
675 iflist->if_names[iflist->if_num++] = ifname;
678 hlist->h_ifnum = iflist->if_num;
696 for (j = 0; j < iflist->if_num; j++)
770 hlist->h_ifnum += iflist->if_num;
807 int if_num;
819 for (if_num = 1; *ifnames != '\0'; ifnames++)
821 if_num++;
823 iflist = smb_nic_iflist_create(host, cmnt, if_num);
831 iflist->if_names[iflist->if_num++] = strndup(ifnames,
835 iflist->if_names[iflist->if_num++] = strdup(ifnames);
837 for (if_num = 0; if_num < iflist->if_num; if_num++) {
838 if (iflist->if_names[if_num] == NULL) {
851 * An array of "char *" is allocated for the given number (if_num)
853 * than 'if_num'. iflist->if_num indicates the actual number of interfaces
857 smb_nic_iflist_create(const char *hostname, const char *cmnt, int if_num)
864 iflist->if_names = calloc(if_num, sizeof (char *));
870 iflist->if_num = 0;
892 for (i = 0; i < iflist->if_num; i++)