On Sun, 2015-01-11 at 21:52 +0100, Richard Weinberger wrote:
Signed-off-by: Richard Weinberger <richard@nod.at>
---
include/linux/netfilter/x_tables.h | 22 ++++++++++++++++++++++
net/ipv4/netfilter/arp_tables.c | 28 +++++++++++++++++-----------
net/ipv4/netfilter/ip_tables.c | 15 +++++----------
net/ipv6/netfilter/ip6_tables.c | 18 +++++++-----------
net/netfilter/xt_physdev.c | 9 ++-------
5 files changed, 53 insertions(+), 39 deletions(-)
Richard, I dislike this, sorry.
iptables is already horribly expensive, you add another expensive step
for every rule.
device aliasing can be done from user space.
iptables should have used ifindex, its sad we allowed the substring
match in first place.