]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
netfilter: ipset: Prepare the kernel for create option flags when no extension is needed
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 13 Feb 2014 11:19:56 +0000 (12:19 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 6 Mar 2014 08:31:42 +0000 (09:31 +0100)
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
include/linux/netfilter/ipset/ip_set.h
include/uapi/linux/netfilter/ipset/ip_set.h

index 4ac00d4aa87e4d51753953125014d73559a1c993..f476bcec25eaa2925395aca566e18bb1b24e8084 100644 (file)
@@ -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 */
index f636f282b142033b8f73a32bf120e0e874a0274c..a29a378701d2089b866a18cf9f43c127ef34dc29 100644 (file)
@@ -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,