From dd8a87da9653848bb8811cc61ed97574254536c9 Mon Sep 17 00:00:00 2001 From: roopa Date: Mon, 12 Nov 2012 12:38:31 -0800 Subject: Add support for per cache flags This patch adds support for per cache flags and adds a flag NL_CACHE_AF_ITER to iter over all supported families when filling the cache. Signed-off-by: Thomas Graf --- include/netlink/cache-api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/netlink/cache-api.h') diff --git a/include/netlink/cache-api.h b/include/netlink/cache-api.h index aa5eeb6..ccb4098 100644 --- a/include/netlink/cache-api.h +++ b/include/netlink/cache-api.h @@ -168,6 +168,11 @@ struct nl_parser_param void * pp_arg; }; +/** + * Cache flags + */ +#define NL_CACHE_AF_ITER 0x0001 + /** * Cache Operations * @@ -189,6 +194,9 @@ struct nl_cache_ops /** cache object hash size **/ int co_hash_size; + /** cache flags */ + unsigned int co_flags; + /** Group definition */ struct nl_af_group * co_groups; -- cgit v1.2.1