diff options
author | Anton Danilov <littlesmilingcloud@gmail.com> | 2014-08-28 10:11:31 +0400 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-09-14 20:35:36 +0200 |
commit | c1dd8442aac6cadb29110f763f23cafc63135a79 (patch) | |
tree | ac73bf1e0feab1ff602e3450058048c69686022e /lib/session.c | |
parent | 89798a24cafa8f1bea391ea577a296f0468971db (diff) |
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 <littlesmilingcloud@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'lib/session.c')
-rw-r--r-- | lib/session.c | 12 |
1 files changed, 12 insertions, 0 deletions
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[] = { |