Skip to content

Commit

Permalink
netfilter: ipset: bitmap:ip,mac type support
Browse files Browse the repository at this point in the history
The module implements the bitmap:ip,mac set type in two flavours,
without and with timeout support. In this kind of set one can store
IPv4 address and (source) MAC address pairs. The type supports elements
added without the MAC part filled out: when the first matching from kernel
happens, the MAC part is automatically filled out. The timing out of the
elements stars when an element is complete in the IP,MAC pair.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
Jozsef Kadlecsik authored and Patrick McHardy committed Feb 1, 2011
1 parent 72205fc commit de76021
Show file tree
Hide file tree
Showing 3 changed files with 665 additions and 0 deletions.
9 changes: 9 additions & 0 deletions net/netfilter/ipset/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,13 @@ config IP_SET_BITMAP_IP

To compile it as a module, choose M here. If unsure, say N.

config IP_SET_BITMAP_IPMAC
tristate "bitmap:ip,mac set support"
depends on IP_SET
help
This option adds the bitmap:ip,mac set type support, by which one
can store IPv4 address and (source) MAC address pairs from a range.

To compile it as a module, choose M here. If unsure, say N.

endif # IP_SET
1 change: 1 addition & 0 deletions net/netfilter/ipset/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ obj-$(CONFIG_IP_SET) += ip_set.o

# bitmap types
obj-$(CONFIG_IP_SET_BITMAP_IP) += ip_set_bitmap_ip.o
obj-$(CONFIG_IP_SET_BITMAP_IPMAC) += ip_set_bitmap_ipmac.o
Loading

0 comments on commit de76021

Please sign in to comment.