From c1dd8442aac6cadb29110f763f23cafc63135a79 Mon Sep 17 00:00:00 2001 From: Anton Danilov Date: Thu, 28 Aug 2014 10:11:31 +0400 Subject: libipset: Add userspace code for the skbinfo extension support. Add userspace code to support of the skbinfo extension independly of set types. Defines constants, flag and function for print/parse/send/recieve of skbinfo parameters. Signed-off-by: Anton Danilov Signed-off-by: Jozsef Kadlecsik --- include/libipset/data.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include/libipset/data.h') diff --git a/include/libipset/data.h b/include/libipset/data.h index 06ece1e..945df54 100644 --- a/include/libipset/data.h +++ b/include/libipset/data.h @@ -62,6 +62,10 @@ enum ipset_opt { IPSET_OPT_BYTES, IPSET_OPT_CREATE_COMMENT, IPSET_OPT_ADT_COMMENT, + IPSET_OPT_SKBINFO, + IPSET_OPT_SKBMARK, + IPSET_OPT_SKBPRIO, + IPSET_OPT_SKBQUEUE, /* Internal options */ IPSET_OPT_FLAGS = 48, /* IPSET_FLAG_EXIST| */ IPSET_OPT_CADT_FLAGS, /* IPSET_FLAG_BEFORE| */ @@ -96,7 +100,8 @@ enum ipset_opt { | IPSET_FLAG(IPSET_OPT_SIZE) \ | IPSET_FLAG(IPSET_OPT_COUNTERS)\ | IPSET_FLAG(IPSET_OPT_CREATE_COMMENT)\ - | IPSET_FLAG(IPSET_OPT_FORCEADD)) + | IPSET_FLAG(IPSET_OPT_FORCEADD)\ + | IPSET_FLAG(IPSET_OPT_SKBINFO)) #define IPSET_ADT_FLAGS \ (IPSET_FLAG(IPSET_OPT_IP) \ @@ -119,7 +124,10 @@ enum ipset_opt { | IPSET_FLAG(IPSET_OPT_NOMATCH) \ | IPSET_FLAG(IPSET_OPT_PACKETS) \ | IPSET_FLAG(IPSET_OPT_BYTES) \ - | IPSET_FLAG(IPSET_OPT_ADT_COMMENT)) + | IPSET_FLAG(IPSET_OPT_ADT_COMMENT)\ + | IPSET_FLAG(IPSET_OPT_SKBMARK) \ + | IPSET_FLAG(IPSET_OPT_SKBPRIO) \ + | IPSET_FLAG(IPSET_OPT_SKBQUEUE)) struct ipset_data; -- cgit v1.2.3