mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 04:02:19 +00:00
always more work to do
This commit is contained in:
parent
2cc1ce7892
commit
dd2e7d5649
@ -367,8 +367,10 @@ exclude_interface(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
printf("Number of Interfaces in Use: %d\n", server_opt.ifs_n);
|
printf("Number of Interfaces in Use: %d\n", me.cur_ifs_n);
|
||||||
printf("Interface names in Use: %s", (char *) server_opt.ifs);
|
|
||||||
|
for (i = 0; i < me.cur_ifs_n; i++)
|
||||||
|
printf("Interface names in Use: %s", me.cur_ifs[i].dev_name);
|
||||||
|
|
||||||
for (i = 0; i < me.cur_ifs_n; i++) {
|
for (i = 0; i < me.cur_ifs_n; i++) {
|
||||||
if (strcmp(me.cur_ifs[i].dev_name, optarg) == 0) {
|
if (strcmp(me.cur_ifs[i].dev_name, optarg) == 0) {
|
||||||
@ -377,8 +379,9 @@ exclude_interface(void)
|
|||||||
ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
|
ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
fatal("Interface %s not found!", optarg);
|
fatal("Interface %s not found!", optarg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user