diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-08 13:41:40 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-13 14:08:38 -0400 |
commit | 24477e57412a7a7dea62637ac990bc5c1cff0665 (patch) | |
tree | f440c1493181ab8893fa8e2730de84f23b09fe6f | |
parent | 7d7402642eaf385aef0772eff5a35e34fc4995d7 (diff) |
uapi: ebtables: don't include linux/if.h
linux/if.h creates conflicts in userspace with net/if.h
By using it here we force userspace to use linux/if.h while
net/if.h may be needed.
Note that:
include/linux/netfilter_ipv4/ip_tables.h and
include/linux/netfilter_ipv6/ip6_tables.h
don't include linux/if.h and they also refer to IFNAMSIZ, so they are
expecting userspace to include use net/if.h from the client program.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | include/linux/netfilter_bridge/ebtables.h | 3 | ||||
-rw-r--r-- | include/uapi/linux/netfilter_bridge/ebtables.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h index 34e7a2b7f867..f1bd3962e6b6 100644 --- a/include/linux/netfilter_bridge/ebtables.h +++ b/include/linux/netfilter_bridge/ebtables.h | |||
@@ -12,9 +12,10 @@ | |||
12 | #ifndef __LINUX_BRIDGE_EFF_H | 12 | #ifndef __LINUX_BRIDGE_EFF_H |
13 | #define __LINUX_BRIDGE_EFF_H | 13 | #define __LINUX_BRIDGE_EFF_H |
14 | 14 | ||
15 | #include <linux/if.h> | ||
16 | #include <linux/if_ether.h> | ||
15 | #include <uapi/linux/netfilter_bridge/ebtables.h> | 17 | #include <uapi/linux/netfilter_bridge/ebtables.h> |
16 | 18 | ||
17 | |||
18 | /* return values for match() functions */ | 19 | /* return values for match() functions */ |
19 | #define EBT_MATCH 0 | 20 | #define EBT_MATCH 0 |
20 | #define EBT_NOMATCH 1 | 21 | #define EBT_NOMATCH 1 |
diff --git a/include/uapi/linux/netfilter_bridge/ebtables.h b/include/uapi/linux/netfilter_bridge/ebtables.h index ba993360dbe9..773dfe8924c7 100644 --- a/include/uapi/linux/netfilter_bridge/ebtables.h +++ b/include/uapi/linux/netfilter_bridge/ebtables.h | |||
@@ -12,9 +12,7 @@ | |||
12 | 12 | ||
13 | #ifndef _UAPI__LINUX_BRIDGE_EFF_H | 13 | #ifndef _UAPI__LINUX_BRIDGE_EFF_H |
14 | #define _UAPI__LINUX_BRIDGE_EFF_H | 14 | #define _UAPI__LINUX_BRIDGE_EFF_H |
15 | #include <linux/if.h> | ||
16 | #include <linux/netfilter_bridge.h> | 15 | #include <linux/netfilter_bridge.h> |
17 | #include <linux/if_ether.h> | ||
18 | 16 | ||
19 | #define EBT_TABLE_MAXNAMELEN 32 | 17 | #define EBT_TABLE_MAXNAMELEN 32 |
20 | #define EBT_CHAIN_MAXNAMELEN EBT_TABLE_MAXNAMELEN | 18 | #define EBT_CHAIN_MAXNAMELEN EBT_TABLE_MAXNAMELEN |