Skip to content

Commit

Permalink
netfilter: ipset: Prepare the kernel for create option flags when no …
Browse files Browse the repository at this point in the history
…extension is needed

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
  • Loading branch information
Jozsef Kadlecsik committed Mar 6, 2014
1 parent 4d0e5c0 commit af284ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/netfilter/ipset/ip_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ struct ip_set {
u8 revision;
/* Extensions */
u8 extensions;
/* Create flags */
u8 flags;
/* Default timeout value, if enabled */
u32 timeout;
/* Element data size */
Expand Down
6 changes: 6 additions & 0 deletions include/uapi/linux/netfilter/ipset/ip_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ enum ipset_cadt_flags {
IPSET_FLAG_CADT_MAX = 15,
};

/* The flag bits which correspond to the non-extension create flags */
enum ipset_create_flags {
IPSET_CREATE_FLAG_NONE = 0,
IPSET_CREATE_FLAG_MAX = 7,
};

/* Commands with settype-specific attributes */
enum ipset_adt {
IPSET_ADD,
Expand Down

0 comments on commit af284ec

Please sign in to comment.