|
@@ -366,9 +366,11 @@ int
|
366
|
366
|
exclude_interface(void)
|
367
|
367
|
{
|
368
|
368
|
int i;
|
369
|
|
-
|
370
|
|
- printf("Number of Interfaces in Use: %d\n", server_opt.ifs_n);
|
371
|
|
- printf("Interface names in Use: %s", (char *) server_opt.ifs);
|
|
369
|
+
|
|
370
|
+ printf("Number of Interfaces in Use: %d\n", me.cur_ifs_n);
|
|
371
|
+
|
|
372
|
+ for (i = 0; i < me.cur_ifs_n; i++)
|
|
373
|
+ printf("Interface names in Use: %s", me.cur_ifs[i].dev_name);
|
372
|
374
|
|
373
|
375
|
for (i = 0; i < me.cur_ifs_n; i++) {
|
374
|
376
|
if (strcmp(me.cur_ifs[i].dev_name, optarg) == 0) {
|
|
@@ -377,8 +379,9 @@ exclude_interface(void)
|
377
|
379
|
ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
|
378
|
380
|
return 0;
|
379
|
381
|
}
|
|
382
|
+ else
|
|
383
|
+ fatal("Interface %s not found!", optarg);
|
380
|
384
|
}
|
381
|
|
- fatal("Interface %s not found!", optarg);
|
382
|
385
|
}
|
383
|
386
|
|
384
|
387
|
void
|