aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_bridge/ebtables.h
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2018-04-09 00:00:57 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 10:29:16 +0200
commitcd9a5a15808403a7895c51b1378168d6c75cf8a6 (patch)
treed37d943298dab819f2deb30bd5dc399c1bf0ec4a /include/linux/netfilter_bridge/ebtables.h
parentnetfilter: ebtables: add ebt_free_table_info function (diff)
downloadlinux-dev-cd9a5a15808403a7895c51b1378168d6c75cf8a6.tar.xz
linux-dev-cd9a5a15808403a7895c51b1378168d6c75cf8a6.zip
netfilter: ebtables: remove EBT_MATCH and EBT_NOMATCH
EBT_MATCH and EBT_NOMATCH are used to change return value. match functions(ebt_xxx.c) return false when received frame is not matched and returns true when received frame is matched. but, EBT_MATCH_ITERATE understands oppositely. so, to change return value, EBT_MATCH and EBT_NOMATCH are used. but, we can use operation '!' simply. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter_bridge/ebtables.h')
-rw-r--r--include/linux/netfilter_bridge/ebtables.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h
index 0773b5a032f1..c6935be7c6ca 100644
--- a/include/linux/netfilter_bridge/ebtables.h
+++ b/include/linux/netfilter_bridge/ebtables.h
@@ -17,10 +17,6 @@
#include <linux/if_ether.h>
#include <uapi/linux/netfilter_bridge/ebtables.h>
-/* return values for match() functions */
-#define EBT_MATCH 0
-#define EBT_NOMATCH 1
-
struct ebt_match {
struct list_head list;
const char name[EBT_FUNCTION_MAXNAMELEN];