diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-10-16 09:21:25 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-11-19 16:40:17 (GMT) |
commit | 3fedee55b8965a7496762fcef2f73455644f67f5 (patch) | |
tree | a94e6f527cdc3a76ebab043b2ef9e61d236e377e /include/netlink-private | |
parent | 3f231213c7c586b5a5e8ce6b1ea9c1d3b24d74c0 (diff) | |
download | libnl-3fedee55b8965a7496762fcef2f73455644f67f5.zip libnl-3fedee55b8965a7496762fcef2f73455644f67f5.tar.gz libnl-3fedee55b8965a7496762fcef2f73455644f67f5.tar.bz2 |
route/link: fix dump of parent link for some link types
Some link types incorrectly dump their own interface name as parent
link; fix this.
Signed-off-by: Beniamino Galvani <bgalvani@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include/netlink-private')
-rw-r--r-- | include/netlink-private/netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink-private/netlink.h b/include/netlink-private/netlink.h index b06df8b..6d40ea5 100644 --- a/include/netlink-private/netlink.h +++ b/include/netlink-private/netlink.h @@ -136,6 +136,7 @@ extern char *__flags2str(int, char *, size_t, const struct trans_tbl *, size_t); extern int __str2flags(const char *, const struct trans_tbl *, size_t); extern void dump_from_ops(struct nl_object *, struct nl_dump_params *); +extern struct rtnl_link *link_lookup(struct nl_cache *cache, int ifindex); static inline int nl_cb_call(struct nl_cb *cb, int type, struct nl_msg *msg) { |