[PATCH 1/1] main: add ve- and vb- to the default interface blacklist.
by kli@iki.fi
From: Krisztian Litkey <kli(a)iki.fi>
Add ve- and vb- to the list of default blacklisted interface
prefixes. Such interfaces are usually used by systemd-nspawn'd
containers and are typically managed by systemd-networkd.
---
src/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main.c b/src/main.c
index e46fa7b..f44a2ed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,6 +57,8 @@ static char *default_blacklist[] = {
"vboxnet",
"virbr",
"ifb",
+ "ve-",
+ "vb-",
NULL
};
--
2.5.5
4 years, 9 months
[PATCH 1/1] bluetooth: Change function return value
by Ravi Prasad RK
---
plugins/bluetooth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 3bf8f0f..181df27 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -720,7 +720,7 @@ static bool tethering_create(const char *path,
if (!bridge) {
g_free(tethering);
- return -EINVAL;
+ return false;
}
proxy = g_dbus_proxy_new(client, path, "org.bluez.NetworkServer1");
--
1.7.9.5
4 years, 9 months
[PATCH 1/1] service: Remove redundant NULL check
by Ravi Prasad RK
g_strdup() returns NULL only if 'nameserver' is NULL.
'nameserver' is checked for NULL at begining of function before
passing to g_strdup() function
---
src/service.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/service.c b/src/service.c
index 8e07337..1fff483 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1127,9 +1127,6 @@ int __connman_service_nameserver_append(struct connman_service *service,
return -ENOMEM;
nameservers[len] = g_strdup(nameserver);
- if (!nameservers[len])
- return -ENOMEM;
-
nameservers[len + 1] = NULL;
if (is_auto) {
--
1.7.9.5
4 years, 9 months
[PATCH] firewall: Remove old rules
by Jose Blanquicet
---
src/firewall.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/firewall.c b/src/firewall.c
index c5acc11..0baba6b 100644
--- a/src/firewall.c
+++ b/src/firewall.c
@@ -438,7 +438,13 @@ int __connman_firewall_enable(struct firewall_context *ctx)
int __connman_firewall_disable(struct firewall_context *ctx)
{
- return __connman_firewall_disable_rule(ctx, FW_ALL_RULES);
+ int err;
+
+ err = __connman_firewall_disable_rule(ctx, FW_ALL_RULES);
+ if (err < 0)
+ return err;
+
+ return __connman_firewall_remove_rule(ctx, FW_ALL_RULES);
}
bool __connman_firewall_is_up(void)
--
1.9.1
4 years, 9 months
[PATCH 1/1] service: Remove unnecessary NULL check
by Ravi Prasad RK
g_strdup() returns NULL only if 'nameserver' is NULL.
'nameserver' is checked for NULL at begining of function before
passing to g_strdup() function.
---
src/service.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/service.c b/src/service.c
index d9abbc4..1fff483 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1127,11 +1127,6 @@ int __connman_service_nameserver_append(struct connman_service *service,
return -ENOMEM;
nameservers[len] = g_strdup(nameserver);
- if (!nameservers[len]) {
- g_strfreev(nameservers);
- return -ENOMEM;
- }
-
nameservers[len + 1] = NULL;
if (is_auto) {
--
1.7.9.5
4 years, 9 months
[PATCH 1/1] service: Fix memory leak in __connman_service_nameserver_append
by Ravi Prasad RK
---
src/service.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/service.c b/src/service.c
index 8e07337..d9abbc4 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1127,8 +1127,10 @@ int __connman_service_nameserver_append(struct connman_service *service,
return -ENOMEM;
nameservers[len] = g_strdup(nameserver);
- if (!nameservers[len])
+ if (!nameservers[len]) {
+ g_strfreev(nameservers);
return -ENOMEM;
+ }
nameservers[len + 1] = NULL;
--
1.7.9.5
4 years, 9 months
firewall: Remove old rules
by Jose Blanquicet
When a new service becomes ready or online, it's checked if its technology
is more preferred than the one used by the currrent default gateway.
If so, this new service becomes the new default gateway.
When the tethering is enabled, a NAT rule is created to forward the
traffic between the interface playing the AP role and the interface
connected to current default gateway. The problem comes out when the
default gateway changes, because the NAT rule is disabled but not
removed from the firewall's rules list. Therefore, when the new rule is
installed also the old rule is installed because it is still in the list.
If it changes again, then three rules will be installed, and so on. They
are never removed.
This patch adds a deletion of all the rules from the firewall list exactly
after they are disabled to avoid the described problem.
Jose Blanquicet (1):
firewall: Remove old rules
src/firewall.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--
1.9.1
4 years, 9 months
[PATCH] nat: Remember previous IPv4 forwarding value
by Patrik Flykt
When NAT is enabled, store the previous IPv4 forwarding setting so that
it can be restored to its former value when disabling NAT.
---
src/nat.c | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/src/nat.c b/src/nat.c
index 063f085..512cbac 100644
--- a/src/nat.c
+++ b/src/nat.c
@@ -25,7 +25,10 @@
#endif
#include <errno.h>
-#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
#include "connman.h"
@@ -42,20 +45,32 @@ struct connman_nat {
static int enable_ip_forward(bool enable)
{
- FILE *f;
+ static char value = 0;
+ int f, err;
- f = fopen("/proc/sys/net/ipv4/ip_forward", "r+");
- if (!f)
+ if ((f = open("/proc/sys/net/ipv4/ip_forward", O_CLOEXEC)) < 0)
return -errno;
- if (enable)
- fprintf(f, "1");
- else
- fprintf(f, "0");
+ if (!value) {
+ if (read(f, &value, sizeof(value)) < 0)
+ value = 0;
+ }
- fclose(f);
+ if (enable) {
+ char allow = '1';
- return 0;
+ err = write (f, &allow, sizeof(allow));
+ } else {
+ char deny = '0';
+
+ err = write(f, value? &value: &deny, sizeof(value));
+ value = 0;
+ }
+
+ DBG("enable %d prev value '%c' err %d", enable, value, err);
+ close(f);
+
+ return (err < 0? err: 0);
}
static int enable_nat(struct connman_nat *nat)
--
2.8.0.rc3
4 years, 9 months
[PATCH 1/1] service: Fix memory leak in __connman_service_nameserver_append
by Ravi Prasad RK
---
src/service.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/service.c b/src/service.c
index 8e07337..d9abbc4 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1127,8 +1127,10 @@ int __connman_service_nameserver_append(struct connman_service *service,
return -ENOMEM;
nameservers[len] = g_strdup(nameserver);
- if (!nameservers[len])
+ if (!nameservers[len]) {
+ g_strfreev(nameservers);
return -ENOMEM;
+ }
nameservers[len + 1] = NULL;
--
1.7.9.5
4 years, 9 months
Issues Building ConnMan 1.31 Caused By Unknown Source
by Ted Moseley
Hi, I am attempting to build ConnMan 1.31 on a Linux from Scratch systemd
build. Unfortunately, I am having these errors come up in the middle of
building, and I am not quite sure why. If someone could give me some advice
on how to fix this issue, or at least get around it for now, that would be
great. I thought it was just an issue with iptables. but after some
research, it seems to deal with the kernel and glibc. So any help will be
much appreciated. Note: I have glib 4.48 and iptables 1.6.0 installed, and
have Linux 4.5 as my kernel. I have also attempted using the latest git
master, and similar results occurred.
Here is the build log when I ran make:
GEN include/connman/log.h
GEN include/connman/plugin.h
GEN include/connman/notifier.h
GEN include/connman/service.h
GEN include/connman/resolver.h
GEN include/connman/ipconfig.h
GEN include/connman/device.h
GEN include/connman/network.h
GEN include/connman/inet.h
GEN include/connman/storage.h
GEN include/connman/provision.h
GEN include/connman/session.h
GEN include/connman/ipaddress.h
GEN include/connman/agent.h
GEN include/connman/inotify.h
GEN include/connman/peer.h
GEN include/connman/machine.h
GEN include/connman/version.h
GEN include/connman/rtnl.h
GEN include/connman/task.h
GEN include/connman/dbus.h
GEN include/connman/option.h
GEN include/connman/provider.h
GEN include/connman/vpn-dbus.h
GEN include/connman/utsname.h
GEN include/connman/timeserver.h
GEN include/connman/proxy.h
GEN include/connman/technology.h
GEN include/connman/setting.h
GEN src/builtin.h
GEN src/connman.service
GEN src/net.connman.service
GEN vpn/connman-vpn.service
GEN vpn/net.connman.vpn.service
GEN include/connman/backtrace.h
GEN src/connman-wait-online.service
GEN scripts/connman_resolvconf.conf
GEN scripts/connman
make --no-print-directory all-am
CC src/iptables.o
CC tools/iptables-test.o
CC tools/tap-test.o
CC tools/wpad-test.o
CC tools/stats-tool.o
CC tools/private-network-test.o
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/linux/if.h:71:2: error: redeclaration of enumerator 'IFF_UP'
IFF_UP = 1<<0, /* sysfs */
^
/usr/include/net/if.h:44:5: note: previous definition of 'IFF_UP' was here
IFF_UP = 0x1, /* Interface is up. */
^
/usr/include/linux/if.h:72:2: error: redeclaration of enumerator
'IFF_BROADCAST'
IFF_BROADCAST = 1<<1, /* __volatile__ */
^
/usr/include/net/if.h:46:5: note: previous definition of 'IFF_BROADCAST'
was here
IFF_BROADCAST = 0x2, /* Broadcast address valid. */
^
/usr/include/linux/if.h:73:2: error: redeclaration of enumerator 'IFF_DEBUG'
IFF_DEBUG = 1<<2, /* sysfs */
^
/usr/include/net/if.h:48:5: note: previous definition of 'IFF_DEBUG' was
here
IFF_DEBUG = 0x4, /* Turn on debugging. */
^
/usr/include/linux/if.h:74:2: error: redeclaration of enumerator
'IFF_LOOPBACK'
IFF_LOOPBACK = 1<<3, /* __volatile__ */
^
/usr/include/net/if.h:50:5: note: previous definition of 'IFF_LOOPBACK' was
here
IFF_LOOPBACK = 0x8, /* Is a loopback net. */
^
/usr/include/linux/if.h:75:2: error: redeclaration of enumerator
'IFF_POINTOPOINT'
IFF_POINTOPOINT = 1<<4, /* __volatile__ */
^
/usr/include/net/if.h:52:5: note: previous definition of 'IFF_POINTOPOINT'
was here
IFF_POINTOPOINT = 0x10, /* Interface is point-to-point link. */
^
/usr/include/linux/if.h:76:2: error: redeclaration of enumerator
'IFF_NOTRAILERS'
IFF_NOTRAILERS = 1<<5, /* sysfs */
^
/usr/include/net/if.h:54:5: note: previous definition of 'IFF_NOTRAILERS'
was here
IFF_NOTRAILERS = 0x20, /* Avoid use of trailers. */
^
/usr/include/linux/if.h:77:2: error: redeclaration of enumerator
'IFF_RUNNING'
IFF_RUNNING = 1<<6, /* __volatile__ */
^
/usr/include/net/if.h:56:5: note: previous definition of 'IFF_RUNNING' was
here
IFF_RUNNING = 0x40, /* Resources allocated. */
^
/usr/include/linux/if.h:78:2: error: redeclaration of enumerator 'IFF_NOARP'
IFF_NOARP = 1<<7, /* sysfs */
^
/usr/include/net/if.h:58:5: note: previous definition of 'IFF_NOARP' was
here
IFF_NOARP = 0x80, /* No address resolution protocol. */
^
/usr/include/linux/if.h:79:2: error: redeclaration of enumerator
'IFF_PROMISC'
IFF_PROMISC = 1<<8, /* sysfs */
^
/usr/include/net/if.h:60:5: note: previous definition of 'IFF_PROMISC' was
here
IFF_PROMISC = 0x100, /* Receive all packets. */
^
/usr/include/linux/if.h:80:2: error: redeclaration of enumerator
'IFF_ALLMULTI'
IFF_ALLMULTI = 1<<9, /* sysfs */
^
/usr/include/net/if.h:64:5: note: previous definition of 'IFF_ALLMULTI' was
here
IFF_ALLMULTI = 0x200, /* Receive all multicast packets. */
^
/usr/include/linux/if.h:81:2: error: redeclaration of enumerator
'IFF_MASTER'
IFF_MASTER = 1<<10, /* __volatile__ */
^
/usr/include/net/if.h:67:5: note: previous definition of 'IFF_MASTER' was
here
IFF_MASTER = 0x400, /* Master of a load balancer. */
^
/usr/include/linux/if.h:82:2: error: redeclaration of enumerator 'IFF_SLAVE'
IFF_SLAVE = 1<<11, /* __volatile__ */
^
/usr/include/net/if.h:69:5: note: previous definition of 'IFF_SLAVE' was
here
IFF_SLAVE = 0x800, /* Slave of a load balancer. */
^
/usr/include/linux/if.h:83:2: error: redeclaration of enumerator
'IFF_MULTICAST'
IFF_MULTICAST = 1<<12, /* sysfs */
^
/usr/include/net/if.h:72:5: note: previous definition of 'IFF_MULTICAST'
was here
IFF_MULTICAST = 0x1000, /* Supports multicast. */
^
/usr/include/linux/if.h:84:2: error: redeclaration of enumerator
'IFF_PORTSEL'
IFF_PORTSEL = 1<<13, /* sysfs */
^
/usr/include/net/if.h:75:5: note: previous definition of 'IFF_PORTSEL' was
here
IFF_PORTSEL = 0x2000, /* Can set media type. */
^
/usr/include/linux/if.h:85:2: error: redeclaration of enumerator
'IFF_AUTOMEDIA'
IFF_AUTOMEDIA = 1<<14, /* sysfs */
^
/usr/include/net/if.h:77:5: note: previous definition of 'IFF_AUTOMEDIA'
was here
IFF_AUTOMEDIA = 0x4000, /* Auto media select active. */
^
/usr/include/net/if.h:77:5: note: previous definition of 'IFF_AUTOMEDIA'
was here
IFF_AUTOMEDIA = 0x4000, /* Auto media select active. */
^
/usr/include/linux/if.h:86:2: error: redeclaration of enumerator
'IFF_DYNAMIC'
IFF_DYNAMIC = 1<<15, /* sysfs */
^
/usr/include/net/if.h:79:5: note: previous definition of 'IFF_DYNAMIC' was
here
IFF_DYNAMIC = 0x8000 /* Dialup device with changing addresses. */
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/iptables.c:36:
/usr/include/linux/if.h:169:8: error: redefinition of 'struct ifmap'
struct ifmap {
^
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/net/if.h:111:8: note: originally defined here
struct ifmap
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/iptables.c:36:
/usr/include/linux/if.h:203:8: error: redefinition of 'struct ifreq'
struct ifreq {
^
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/net/if.h:126:8: note: originally defined here
struct ifreq
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/iptables.c:36:
/usr/include/linux/if.h:252:8: error: redefinition of 'struct ifconf'
struct ifconf {
^
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/net/if.h:176:8: note: originally defined here
struct ifconf
^
CC tools/session-api.o
CC src/tools_iptables_unit-log.o
CC src/tools_iptables_unit-backtrace.o
CC src/tools_iptables_unit-iptables.o
CC src/tools_iptables_unit-firewall.o
CC src/tools_iptables_unit-nat.o
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/linux/if.h:71:2: error: redeclaration of enumerator 'IFF_UP'
IFF_UP = 1<<0, /* sysfs */
^
/usr/include/net/if.h:44:5: note: previous definition of 'IFF_UP' was here
IFF_UP = 0x1, /* Interface is up. */
^
/usr/include/linux/if.h:72:2: error: redeclaration of enumerator
'IFF_BROADCAST'
IFF_BROADCAST = 1<<1, /* __volatile__ */
^
/usr/include/net/if.h:46:5: note: previous definition of 'IFF_BROADCAST'
was here
IFF_BROADCAST = 0x2, /* Broadcast address valid. */
^
/usr/include/linux/if.h:73:2: error: redeclaration of enumerator 'IFF_DEBUG'
IFF_DEBUG = 1<<2, /* sysfs */
^
/usr/include/net/if.h:48:5: note: previous definition of 'IFF_DEBUG' was
here
IFF_DEBUG = 0x4, /* Turn on debugging. */
^
/usr/include/linux/if.h:74:2: error: redeclaration of enumerator
'IFF_LOOPBACK'
IFF_LOOPBACK = 1<<3, /* __volatile__ */
^
/usr/include/net/if.h:50:5: note: previous definition of 'IFF_LOOPBACK' was
here
IFF_LOOPBACK = 0x8, /* Is a loopback net. */
^
/usr/include/linux/if.h:75:2: error: redeclaration of enumerator
'IFF_POINTOPOINT'
IFF_POINTOPOINT = 1<<4, /* __volatile__ */
^
/usr/include/net/if.h:52:5: note: previous definition of 'IFF_POINTOPOINT'
was here
IFF_POINTOPOINT = 0x10, /* Interface is point-to-point link. */
^
/usr/include/linux/if.h:76:2: error: redeclaration of enumerator
'IFF_NOTRAILERS'
IFF_NOTRAILERS = 1<<5, /* sysfs */
^
/usr/include/net/if.h:54:5: note: previous definition of 'IFF_NOTRAILERS'
was here
IFF_NOTRAILERS = 0x20, /* Avoid use of trailers. */
^
/usr/include/linux/if.h:77:2: error: redeclaration of enumerator
'IFF_RUNNING'
IFF_RUNNING = 1<<6, /* __volatile__ */
^
/usr/include/net/if.h:56:5: note: previous definition of 'IFF_RUNNING' was
here
IFF_RUNNING = 0x40, /* Resources allocated. */
^
/usr/include/linux/if.h:78:2: error: redeclaration of enumerator 'IFF_NOARP'
IFF_NOARP = 1<<7, /* sysfs */
^
/usr/include/net/if.h:58:5: note: previous definition of 'IFF_NOARP' was
here
IFF_NOARP = 0x80, /* No address resolution protocol. */
^
/usr/include/linux/if.h:79:2: error: redeclaration of enumerator
'IFF_PROMISC'
IFF_PROMISC = 1<<8, /* sysfs */
^
/usr/include/net/if.h:60:5: note: previous definition of 'IFF_PROMISC' was
here
IFF_PROMISC = 0x100, /* Receive all packets. */
^
/usr/include/linux/if.h:80:2: error: redeclaration of enumerator
'IFF_ALLMULTI'
IFF_ALLMULTI = 1<<9, /* sysfs */
^
/usr/include/net/if.h:64:5: note: previous definition of 'IFF_ALLMULTI' was
here
IFF_ALLMULTI = 0x200, /* Receive all multicast packets. */
^
/usr/include/linux/if.h:81:2: error: redeclaration of enumerator
'IFF_MASTER'
IFF_MASTER = 1<<10, /* __volatile__ */
^
/usr/include/net/if.h:67:5: note: previous definition of 'IFF_MASTER' was
here
IFF_MASTER = 0x400, /* Master of a load balancer. */
^
/usr/include/linux/if.h:82:2: error: redeclaration of enumerator 'IFF_SLAVE'
IFF_SLAVE = 1<<11, /* __volatile__ */
^
/usr/include/net/if.h:69:5: note: previous definition of 'IFF_SLAVE' was
here
IFF_SLAVE = 0x800, /* Slave of a load balancer. */
^
/usr/include/linux/if.h:83:2: error: redeclaration of enumerator
'IFF_MULTICAST'
IFF_MULTICAST = 1<<12, /* sysfs */
^
/usr/include/net/if.h:72:5: note: previous definition of 'IFF_MULTICAST'
was here
IFF_MULTICAST = 0x1000, /* Supports multicast. */
^
/usr/include/linux/if.h:84:2: error: redeclaration of enumerator
'IFF_PORTSEL'
IFF_PORTSEL = 1<<13, /* sysfs */
^
/usr/include/net/if.h:75:5: note: previous definition of 'IFF_PORTSEL' was
here
IFF_PORTSEL = 0x2000, /* Can set media type. */
^
/usr/include/linux/if.h:85:2: error: redeclaration of enumerator
'IFF_AUTOMEDIA'
IFF_AUTOMEDIA = 1<<14, /* sysfs */
^
/usr/include/net/if.h:77:5: note: previous definition of 'IFF_AUTOMEDIA'
was here
IFF_AUTOMEDIA = 0x4000, /* Auto media select active. */
^
/usr/include/linux/if.h:86:2: error: redeclaration of enumerator
'IFF_DYNAMIC'
IFF_DYNAMIC = 1<<15, /* sysfs */
^
/usr/include/net/if.h:79:5: note: previous definition of 'IFF_DYNAMIC' was
here
IFF_DYNAMIC = 0x8000 /* Dialup device with changing addresses. */
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/iptables.c:36:
/usr/include/linux/if.h:169:8: error: redefinition of 'struct ifmap'
struct ifmap {
^
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/net/if.h:111:8: note: originally defined here
struct ifmap
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/iptables.c:36:
/usr/include/linux/if.h:203:8: error: redefinition of 'struct ifreq'
struct ifreq {
^
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/net/if.h:126:8: note: originally defined here
struct ifreq
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/iptables.c:36:
/usr/include/linux/if.h:252:8: error: redefinition of 'struct ifconf'
struct ifconf {
^
In file included from /usr/include/xtables.h:16:0,
from src/iptables.c:33:
/usr/include/net/if.h:176:8: note: originally defined here
struct ifconf
^
In file included from /usr/include/xtables.h:16:0,
from src/firewall.c:28:
/usr/include/linux/if.h:71:2: error: redeclaration of enumerator 'IFF_UP'
IFF_UP = 1<<0, /* sysfs */
^
/usr/include/net/if.h:44:5: note: previous definition of 'IFF_UP' was here
IFF_UP = 0x1, /* Interface is up. */
^
/usr/include/linux/if.h:72:2: error: redeclaration of enumerator
'IFF_BROADCAST'
IFF_BROADCAST = 1<<1, /* __volatile__ */
^
/usr/include/net/if.h:46:5: note: previous definition of 'IFF_BROADCAST'
was here
IFF_BROADCAST = 0x2, /* Broadcast address valid. */
^
/usr/include/linux/if.h:73:2: error: redeclaration of enumerator 'IFF_DEBUG'
IFF_DEBUG = 1<<2, /* sysfs */
^
/usr/include/net/if.h:48:5: note: previous definition of 'IFF_DEBUG' was
here
IFF_DEBUG = 0x4, /* Turn on debugging. */
^
Makefile:2777: recipe for target 'src/iptables.o' failed
/usr/include/linux/if.h:74:2: error: redeclaration of enumerator
'IFF_LOOPBACK'
IFF_LOOPBACK = 1<<3, /* __volatile__ */
^
make[1]: *** [src/iptables.o] Error 1
/usr/include/net/if.h:50:5: note: previous definition of 'IFF_LOOPBACK' was
here
IFF_LOOPBACK = 0x8, /* Is a loopback net. */
^
make[1]: *** Waiting for unfinished jobs....
/usr/include/linux/if.h:75:2: error: redeclaration of enumerator
'IFF_POINTOPOINT'
IFF_POINTOPOINT = 1<<4, /* __volatile__ */
^
/usr/include/net/if.h:52:5: note: previous definition of 'IFF_POINTOPOINT'
was here
IFF_POINTOPOINT = 0x10, /* Interface is point-to-point link. */
^
/usr/include/linux/if.h:76:2: error: redeclaration of enumerator
'IFF_NOTRAILERS'
IFF_NOTRAILERS = 1<<5, /* sysfs */
^
/usr/include/net/if.h:54:5: note: previous definition of 'IFF_NOTRAILERS'
was here
IFF_NOTRAILERS = 0x20, /* Avoid use of trailers. */
^
/usr/include/linux/if.h:77:2: error: redeclaration of enumerator
'IFF_RUNNING'
IFF_RUNNING = 1<<6, /* __volatile__ */
^
/usr/include/net/if.h:56:5: note: previous definition of 'IFF_RUNNING' was
here
IFF_RUNNING = 0x40, /* Resources allocated. */
^
/usr/include/linux/if.h:78:2: error: redeclaration of enumerator 'IFF_NOARP'
IFF_NOARP = 1<<7, /* sysfs */
^
/usr/include/net/if.h:58:5: note: previous definition of 'IFF_NOARP' was
here
IFF_NOARP = 0x80, /* No address resolution protocol. */
^
/usr/include/linux/if.h:79:2: error: redeclaration of enumerator
'IFF_PROMISC'
IFF_PROMISC = 1<<8, /* sysfs */
^
/usr/include/net/if.h:60:5: note: previous definition of 'IFF_PROMISC' was
here
IFF_PROMISC = 0x100, /* Receive all packets. */
^
/usr/include/linux/if.h:80:2: error: redeclaration of enumerator
'IFF_ALLMULTI'
IFF_ALLMULTI = 1<<9, /* sysfs */
^
/usr/include/net/if.h:64:5: note: previous definition of 'IFF_ALLMULTI' was
here
IFF_ALLMULTI = 0x200, /* Receive all multicast packets. */
^
/usr/include/linux/if.h:81:2: error: redeclaration of enumerator
'IFF_MASTER'
IFF_MASTER = 1<<10, /* __volatile__ */
^
/usr/include/net/if.h:67:5: note: previous definition of 'IFF_MASTER' was
here
IFF_MASTER = 0x400, /* Master of a load balancer. */
^
/usr/include/linux/if.h:82:2: error: redeclaration of enumerator 'IFF_SLAVE'
IFF_SLAVE = 1<<11, /* __volatile__ */
^
/usr/include/net/if.h:69:5: note: previous definition of 'IFF_SLAVE' was
here
IFF_SLAVE = 0x800, /* Slave of a load balancer. */
^
/usr/include/linux/if.h:83:2: error: redeclaration of enumerator
'IFF_MULTICAST'
IFF_MULTICAST = 1<<12, /* sysfs */
^
/usr/include/net/if.h:72:5: note: previous definition of 'IFF_MULTICAST'
was here
IFF_MULTICAST = 0x1000, /* Supports multicast. */
^
/usr/include/linux/if.h:84:2: error: redeclaration of enumerator
'IFF_PORTSEL'
IFF_PORTSEL = 1<<13, /* sysfs */
^
/usr/include/net/if.h:75:5: note: previous definition of 'IFF_PORTSEL' was
here
IFF_PORTSEL = 0x2000, /* Can set media type. */
^
/usr/include/linux/if.h:85:2: error: redeclaration of enumerator
'IFF_AUTOMEDIA'
IFF_AUTOMEDIA = 1<<14, /* sysfs */
^
/usr/include/net/if.h:77:5: note: previous definition of 'IFF_AUTOMEDIA'
was here
IFF_AUTOMEDIA = 0x4000, /* Auto media select active. */
^
/usr/include/linux/if.h:86:2: error: redeclaration of enumerator
'IFF_DYNAMIC'
IFF_DYNAMIC = 1<<15, /* sysfs */
^
/usr/include/net/if.h:79:5: note: previous definition of 'IFF_DYNAMIC' was
here
IFF_DYNAMIC = 0x8000 /* Dialup device with changing addresses. */
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/firewall.c:29:
/usr/include/linux/if.h:169:8: error: redefinition of 'struct ifmap'
struct ifmap {
^
In file included from /usr/include/xtables.h:16:0,
from src/firewall.c:28:
/usr/include/net/if.h:111:8: note: originally defined here
struct ifmap
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/firewall.c:29:
/usr/include/linux/if.h:203:8: error: redefinition of 'struct ifreq'
struct ifreq {
^
In file included from /usr/include/xtables.h:16:0,
from src/firewall.c:28:
/usr/include/net/if.h:126:8: note: originally defined here
struct ifreq
^
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
from src/firewall.c:29:
/usr/include/linux/if.h:252:8: error: redefinition of 'struct ifconf'
struct ifconf {
^
In file included from /usr/include/xtables.h:16:0,
from src/firewall.c:28:
/usr/include/net/if.h:176:8: note: originally defined here
struct ifconf
^
Makefile:4047: recipe for target 'src/tools_iptables_unit-iptables.o' failed
make[1]: *** [src/tools_iptables_unit-iptables.o] Error 1
Makefile:4061: recipe for target 'src/tools_iptables_unit-firewall.o' failed
make[1]: *** [src/tools_iptables_unit-firewall.o] Error 1
Makefile:1620: recipe for target 'all' failed
make: *** [all] Error 2
--
Ted Moseley
4 years, 9 months