summaryrefslogtreecommitdiffstats
path: root/include/netlink-private
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink-private')
-rw-r--r--include/netlink-private/object-api.h13
-rw-r--r--include/netlink-private/types.h1
2 files changed, 13 insertions, 1 deletions
diff --git a/include/netlink-private/object-api.h b/include/netlink-private/object-api.h
index e94b67c..91e3fb4 100644
--- a/include/netlink-private/object-api.h
+++ b/include/netlink-private/object-api.h
@@ -27,6 +27,13 @@ enum oo_update_flags {
OO_UPDATE_FLAGS_IS_DUMP = 1,
};
+enum oo_objflags {
+ OO_OBJFLAGS_NONE = 0,
+
+ /* whether to append or prepend the object in the hash bucket. */
+ OO_OBJFLAGS_CACHE_APPEND = 1,
+};
+
/**
* @ingroup object
* @defgroup object_api Object API
@@ -197,7 +204,6 @@ enum oo_update_flags {
struct nl_cache * ce_cache; \
struct nl_list_head ce_list; \
int ce_msgtype; \
- int ce_msgflags; \
int ce_flags; \
uint64_t ce_mask;
@@ -381,12 +387,17 @@ struct nl_object_ops
* Get attributes used in hash key
*/
uint32_t (*oo_hash_attrs_get)(struct nl_object *);
+
+ int (*oo_check_objflags)(struct nl_object *, enum oo_objflags flags);
};
int _nl_object_update(struct nl_object *dst,
struct nl_object *src,
enum oo_update_flags flags);
+int _nl_object_check_objflags (struct nl_object *obj,
+ enum oo_objflags flags);
+
/** @} */
#ifdef __cplusplus
diff --git a/include/netlink-private/types.h b/include/netlink-private/types.h
index 0f67ddd..bf6a7ba 100644
--- a/include/netlink-private/types.h
+++ b/include/netlink-private/types.h
@@ -281,6 +281,7 @@ struct rtnl_route
{
NLHDR_COMMON
+ int rt_msgflags;
uint8_t rt_family;
uint8_t rt_dst_len;
uint8_t rt_src_len;