summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/netlink-private/object-api.h1
-rw-r--r--lib/route/route_obj.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink-private/object-api.h b/include/netlink-private/object-api.h
index 517e672..a5ecaa1 100644
--- a/include/netlink-private/object-api.h
+++ b/include/netlink-private/object-api.h
@@ -190,6 +190,7 @@ extern "C" {
struct nl_cache * ce_cache; \
struct nl_list_head ce_list; \
int ce_msgtype; \
+ int ce_msgflags; \
int ce_flags; \
uint64_t ce_mask;
diff --git a/lib/route/route_obj.c b/lib/route/route_obj.c
index 0f52e00..f6f2147 100644
--- a/lib/route/route_obj.c
+++ b/lib/route/route_obj.c
@@ -1021,6 +1021,7 @@ int rtnl_route_parse(struct nlmsghdr *nlh, struct rtnl_route **result)
}
route->ce_msgtype = nlh->nlmsg_type;
+ route->ce_msgflags = nlh->nlmsg_flags;
err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy);
if (err < 0)