Skip to content

Commit af284ec

Browse files
author
Jozsef Kadlecsik
committed
netfilter: ipset: Prepare the kernel for create option flags when no extension is needed
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
1 parent 4d0e5c0 commit af284ec

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎include/linux/netfilter/ipset/ip_set.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ struct ip_set {
219219
u8 revision;
220220
/* Extensions */
221221
u8 extensions;
222+
/* Create flags */
223+
u8 flags;
222224
/* Default timeout value, if enabled */
223225
u32 timeout;
224226
/* Element data size */

‎include/uapi/linux/netfilter/ipset/ip_set.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ enum ipset_cadt_flags {
188188
IPSET_FLAG_CADT_MAX = 15,
189189
};
190190

191+
/* The flag bits which correspond to the non-extension create flags */
192+
enum ipset_create_flags {
193+
IPSET_CREATE_FLAG_NONE = 0,
194+
IPSET_CREATE_FLAG_MAX = 7,
195+
};
196+
191197
/* Commands with settype-specific attributes */
192198
enum ipset_adt {
193199
IPSET_ADD,

0 commit comments

Comments
 (0)