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 --- lib/session.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/session.c') diff --git a/lib/session.c b/lib/session.c index d2957a5..33ce4de 100644 --- a/lib/session.c +++ b/lib/session.c @@ -501,6 +501,18 @@ static const struct ipset_attr_policy adt_attrs[] = { .opt = IPSET_OPT_ADT_COMMENT, .len = IPSET_MAX_COMMENT_SIZE + 1, }, + [IPSET_ATTR_SKBMARK] = { + .type = MNL_TYPE_U64, + .opt = IPSET_OPT_SKBMARK, + }, + [IPSET_ATTR_SKBPRIO] = { + .type = MNL_TYPE_U32, + .opt = IPSET_OPT_SKBPRIO, + }, + [IPSET_ATTR_SKBQUEUE] = { + .type = MNL_TYPE_U16, + .opt = IPSET_OPT_SKBQUEUE, + }, }; static const struct ipset_attr_policy ipaddr_attrs[] = { -- cgit v1.2.3