mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
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:
parent
19ce039cee
commit
e148dc2389
@ -326,7 +326,7 @@ void free_server_opt(void)
|
|||||||
|
|
||||||
// Checks and removes any existing interface which is intended to be excluded
|
// Checks and removes any existing interface which is intended to be excluded
|
||||||
|
|
||||||
void check_excluded(void) {
|
/*void check_excluded(void) {
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -396,7 +396,7 @@ int exclude_interface(int prevent_doubles) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
freeifaddrs(addrs);
|
freeifaddrs(addrs);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
void parse_options(int argc, char **argv)
|
void parse_options(int argc, char **argv)
|
||||||
{
|
{
|
||||||
@ -443,7 +443,7 @@ void parse_options(int argc, char **argv)
|
|||||||
//int prevent_doubles = -1;
|
//int prevent_doubles = -1;
|
||||||
//prevent_doubles++;
|
//prevent_doubles++;
|
||||||
//exclude_interface(prevent_doubles);
|
//exclude_interface(prevent_doubles);
|
||||||
check_excluded();
|
//check_excluded();
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
if(is_ntkd_already_running() == 1){
|
if(is_ntkd_already_running() == 1){
|
||||||
|
Loading…
Reference in New Issue
Block a user