|
@@ -371,9 +371,9 @@ exclude_interface(void)
|
371
|
371
|
printf("Interface names in Use: %s", (char *) server_opt.ifs);
|
372
|
372
|
|
373
|
373
|
for (i = 0; i < me.cur_ifs_n; i++) {
|
374
|
|
- if (strcmp(me.cur_ifs[i], optarg) == 0) {
|
|
374
|
+ if (strcmp(me.cur_ifs[i].dev_name, optarg) == 0) {
|
375
|
375
|
printf("Interface %s removed, And replaced with %s",
|
376
|
|
- me.cur_ifs[i], me.cur_ifs[me.cur_ifs_n]);
|
|
376
|
+ me.cur_ifs[i].dev_name, me.cur_ifs[me.cur_ifs_n].dev_name);
|
377
|
377
|
ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
|
378
|
378
|
return 0;
|
379
|
379
|
}
|