Commit af284ece authored by Jozsef Kadlecsik's avatar Jozsef Kadlecsik

netfilter: ipset: Prepare the kernel for create option flags when no extension is needed

Signed-off-by: default avatarJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
parent 4d0e5c07
...@@ -219,6 +219,8 @@ struct ip_set { ...@@ -219,6 +219,8 @@ struct ip_set {
u8 revision; u8 revision;
/* Extensions */ /* Extensions */
u8 extensions; u8 extensions;
/* Create flags */
u8 flags;
/* Default timeout value, if enabled */ /* Default timeout value, if enabled */
u32 timeout; u32 timeout;
/* Element data size */ /* Element data size */
......
...@@ -188,6 +188,12 @@ enum ipset_cadt_flags { ...@@ -188,6 +188,12 @@ enum ipset_cadt_flags {
IPSET_FLAG_CADT_MAX = 15, 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 */ /* Commands with settype-specific attributes */
enum ipset_adt { enum ipset_adt {
IPSET_ADD, IPSET_ADD,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment