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.list2 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/hash:net,iface.t.list2 (limited to 'tests/hash:net,iface.t.list2') diff --git a/tests/hash:net,iface.t.list2 b/tests/hash:net,iface.t.list2 new file mode 100644 index 0000000..89aa033 --- /dev/null +++ b/tests/hash:net,iface.t.list2 @@ -0,0 +1,10 @@ +Name: test +Type: hash:net,iface +Header: family inet hashsize 1024 maxelem 65536 +Size in memory: 17168 +References: 0 +Members: +10.2.0.0/24,eth0 +10.2.1.0/29,eth0 +10.2.1.12,eth0 +10.2.1.8/30,eth0 -- cgit v1.2.3