]> granicus.if.org Git - ipset/commitdiff
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, 13 Feb 2014 11:19:56 +0000 (12:19 +0100)
include/libipset/linux_ip_set.h
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/include/uapi/linux/netfilter/ipset/ip_set.h

index c2bae851c69140b9d8873688a4e4f20455a87ca9..590e3939c5e1d7f0a6d3e85d0599796933f7b502 100644 (file)
@@ -189,6 +189,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,
index 01c4d4d80fed49e2fbdb73d2b94fbe32d526d4a1..79b13d05f4c08f698830fa6027b2243c734b2ea0 100644 (file)
@@ -220,6 +220,8 @@ struct ip_set {
        u8 revision;
        /* Extensions */
        u8 extensions;
+       /* Create flags */
+       u8 flags;
        /* Default timeout value, if enabled */
        u32 timeout;
        /* Element data size */
index c2bae851c69140b9d8873688a4e4f20455a87ca9..590e3939c5e1d7f0a6d3e85d0599796933f7b502 100644 (file)
@@ -189,6 +189,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,