From 0f9b385a31c97ccf80c7a04a98a9319ae053b39c Mon Sep 17 00:00:00 2001 From: MissValeska Date: Sun, 1 Jun 2014 18:35:16 -0700 Subject: [PATCH] Okay, So, I seem to have fixed the compilation errors, I will begin testing now. --- src/netsukuku.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netsukuku.c b/src/netsukuku.c index 560c878..95a82bf 100644 --- a/src/netsukuku.c +++ b/src/netsukuku.c @@ -357,7 +357,7 @@ int exclude_interface(int prevent_doubles) { char *ifs = "null1"; char *old_tmp = "null2"; - interface ifs_a; + interface *ifs_a; int ifs_n = 1; struct ifaddrs *addrs,*tmp; @@ -370,7 +370,7 @@ int exclude_interface(int prevent_doubles) { old_tmp = ifs; - if(tmp && tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET && tmp->ifa_flags & IFF_UP && !(tmp->ifa_flags & IFF_LOOPBACK) (strncmp(tmp->ifa_name, "tunl0", 5) != 0 || strncmp(tmp->ifa_name, "tunl1", 5) != 0 || strcmp(optarg, tmp->ifa_name) != 0)) { + if(tmp && tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET && tmp->ifa_flags & IFF_UP && !(tmp->ifa_flags & IFF_LOOPBACK /*&& strncmp(tmp->ifa_name, "tunl0", 5) != 0 && strncmp(tmp->ifa_name, "tunl1", 5) != 0 && */ && strcmp(optarg, tmp->ifa_name) != 0)) { ifs = tmp->ifa_name; ifs_n++; }