From 418a3a4f4d4e38abd1d691f81f2445590f02ecaf Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 30 May 2011 17:48:01 +0200 Subject: hash:net,iface type introduced The hash:net,iface type makes possible to store network address and interface name pairs in a set. It's mostly suitable for egress and ingress filtering. Examples: # ipset create test hash:net,iface # ipset add test 192.168.0.0/16,eth0 # ipset add test 192.168.0.0/24,eth1 --- tests/hash:net,iface.t.list0 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/hash:net,iface.t.list0 (limited to 'tests/hash:net,iface.t.list0') diff --git a/tests/hash:net,iface.t.list0 b/tests/hash:net,iface.t.list0 new file mode 100644 index 0000000..1771fca --- /dev/null +++ b/tests/hash:net,iface.t.list0 @@ -0,0 +1,10 @@ +Name: test +Type: hash:net,iface +Header: family inet hashsize 128 maxelem 65536 +Size in memory: 2928 +References: 0 +Members: +1.1.1.1,eth0 +192.168.68.64/27,eth1 +2.0.0.0/24,eth0 +2.0.0.1,eth0 -- cgit v1.2.3