Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236848
b: refs/heads/master
c: f830837
h: refs/heads/master
v: v3
  • Loading branch information
Jozsef Kadlecsik authored and Patrick McHardy committed Feb 1, 2011
1 parent 4684055 commit d8e15d0
Show file tree
Hide file tree
Showing 5 changed files with 625 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21f45020a3084f80fcdd5f056a0c6389f5406399
refs/heads/master: f830837f0eed0f9e371b8fd65169365780814bb1
27 changes: 27 additions & 0 deletions trunk/include/linux/netfilter/ipset/ip_set_list.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#ifndef __IP_SET_LIST_H
#define __IP_SET_LIST_H

/* List type specific error codes */
enum {
/* Set name to be added/deleted/tested does not exist. */
IPSET_ERR_NAME = IPSET_ERR_TYPE_SPECIFIC,
/* list:set type is not permitted to add */
IPSET_ERR_LOOP,
/* Missing reference set */
IPSET_ERR_BEFORE,
/* Reference set does not exist */
IPSET_ERR_NAMEREF,
/* Set is full */
IPSET_ERR_LIST_FULL,
/* Reference set is not added to the set */
IPSET_ERR_REF_EXIST,
};

#ifdef __KERNEL__

#define IP_SET_LIST_DEFAULT_SIZE 8
#define IP_SET_LIST_MIN_SIZE 4

#endif /* __KERNEL__ */

#endif /* __IP_SET_LIST_H */
10 changes: 10 additions & 0 deletions trunk/net/netfilter/ipset/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ config IP_SET_HASH_NETPORT

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

config IP_SET_LIST_SET
tristate "list:set set support"
depends on IP_SET
help
This option adds the list:set set type support. In this
kind of set one can store the name of other sets and it forms
an ordered union of the member sets.

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

endif # IP_SET
3 changes: 3 additions & 0 deletions trunk/net/netfilter/ipset/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ obj-$(CONFIG_IP_SET_HASH_IPPORTIP) += ip_set_hash_ipportip.o
obj-$(CONFIG_IP_SET_HASH_IPPORTNET) += ip_set_hash_ipportnet.o
obj-$(CONFIG_IP_SET_HASH_NET) += ip_set_hash_net.o
obj-$(CONFIG_IP_SET_HASH_NETPORT) += ip_set_hash_netport.o

# list types
obj-$(CONFIG_IP_SET_LIST_SET) += ip_set_list_set.o
Loading

0 comments on commit d8e15d0

Please sign in to comment.