diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2015-01-19 14:28:07 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-01-28 17:23:51 +0100 |
commit | 49479aa12a158001bf1e4104b248e533f5038cf3 (patch) | |
tree | 58ac8b7d0dff36db4ee023f36b99a8f66768de6f /iptables | |
parent | 8acf8315a44fbee8227433daabb262b6de1e70f6 (diff) |
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 <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/xtables-eb.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |