Lines Matching refs:total
101 int total = 0;
123 for (i=n-1;i>=0 && total < max_interfaces;i--) {
145 strncpy(ifaces[total].name, iname, sizeof(ifaces[total].name)-1);
146 ifaces[total].name[sizeof(ifaces[total].name)-1] = 0;
147 ifaces[total].ip = ipaddr;
148 ifaces[total].netmask = nmask;
149 total++;
154 return total;
174 int total = 0;
206 for (i = 0; i<n && total < max_interfaces; i++) {
239 strncpy(ifaces[total].name, iname, sizeof(ifaces[total].name)-1);
240 ifaces[total].name[sizeof(ifaces[total].name)-1] = 0;
241 ifaces[total].ip = ipaddr;
242 ifaces[total].netmask = nmask;
244 total++;
249 return total;
266 int total = 0;
286 while (i > 0 && total < max_interfaces) {
312 strncpy(ifaces[total].name, iname, sizeof(ifaces[total].name)-1);
313 ifaces[total].name[sizeof(ifaces[total].name)-1] = 0;
314 ifaces[total].ip = ipaddr;
315 ifaces[total].netmask = nmask;
317 total++;
337 return total;
363 int total, i, j;
365 total = _get_interfaces(ifaces, max_interfaces);
366 if (total <= 0) return total;
369 qsort(ifaces, total, sizeof(ifaces[0]), QSORT_CAST iface_comp);
371 for (i=1;i<total;) {
373 for (j=i-1;j<total-1;j++) {
376 total--;
382 return total;
394 int total = get_interfaces(ifaces, MAX_INTERFACES);
397 printf("got %d interfaces:\n", total);
398 if (total <= 0) exit(1);
400 for (i=0;i<total;i++) {