From 49479aa12a158001bf1e4104b248e533f5038cf3 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Mon, 19 Jan 2015 14:28:07 +0100 Subject: ebtables-compat: add 'ip' match extension This patch adds the 'ip' match extension to ebtables-compat. It involves adapting old ebtables extension code to the xtables-compat environment. For testing: % sudo ebtables-compat -p 0x0800 --ip-src 1.1.1.1 -j ACCEPT The patch includes a cached copy of the extension kernel header. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-eb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/xtables-eb.c') diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index a0786794..27a1c168 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -639,6 +639,7 @@ static void ebt_load_matches(void) { opts = ebt_original_options; ebt_load_match("802_3"); + ebt_load_match("ip"); } static void ebt_add_match(struct xtables_match *m, -- cgit v1.2.3