Okay, There are some compilation errors, And, While the check_interfaces function will work, It will only work if the interface lists are already populated. Which, Doesn't seem to happen until after the argument section of netsukuku. I guess we will have to, Either, Call those functions somehow (In a way that won't cause them to be called twice, And, Thus, Create duplicates.), Or, Use the exclude_interfaces function. However, That function is probably sub-par, I don't know how well it will really work with the rest of netsukuku.

Much more work and testing is required, I will just comment this code out for now, I am going to look into the feasibility of porting netsukuku to windows.
This commit is contained in:
MissValeska 2014-05-26 20:58:40 -07:00
parent 19ce039cee
commit e148dc2389

View File

@ -326,7 +326,7 @@ void free_server_opt(void)
// Checks and removes any existing interface which is intended to be excluded
void check_excluded(void) {
/*void check_excluded(void) {
int i;
@ -396,7 +396,7 @@ int exclude_interface(int prevent_doubles) {
}
freeifaddrs(addrs);
}
}*/
void parse_options(int argc, char **argv)
{
@ -443,7 +443,7 @@ void parse_options(int argc, char **argv)
//int prevent_doubles = -1;
//prevent_doubles++;
//exclude_interface(prevent_doubles);
check_excluded();
//check_excluded();
break;
case 'k':
if(is_ntkd_already_running() == 1){