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/debug.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/debug.c') diff --git a/lib/debug.c b/lib/debug.c index 1240e22..b2c5003 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -67,6 +67,9 @@ static const struct ipset_attrname adtattr2name[] = { [IPSET_ATTR_IP2_TO] = { .name = "IP2_TO" }, [IPSET_ATTR_IFACE] = { .name = "IFACE" }, [IPSET_ATTR_COMMENT] = { .name = "COMMENT" }, + [IPSET_ATTR_SKBMARK] = { .name = "SKBMARK" }, + [IPSET_ATTR_SKBPRIO] = { .name = "SKBPRIO" }, + [IPSET_ATTR_SKBQUEUE] = { .name = "SKBQUEUE" }, }; static void @@ -98,6 +101,12 @@ debug_cadt_attrs(int max, const struct ipset_attr_policy *policy, fprintf(stderr, "\t\t%s: %u\n", attr2name[i].name, ntohl(v)); break; + case MNL_TYPE_U64: + fprintf(stderr, "\t\t%s: 0x%llx\n", + attr2name[i].name, (long long int) + be64toh(*(uint64_t *) + mnl_attr_get_payload(nla[i]))); + break; case MNL_TYPE_NUL_STRING: fprintf(stderr, "\t\t%s: %s\n", attr2name[i].name, -- cgit v1.2.3