diff options
Diffstat (limited to 'lib/route/neigh.c')
-rw-r--r-- | lib/route/neigh.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/route/neigh.c b/lib/route/neigh.c index faad1d4..7ea3ea2 100644 --- a/lib/route/neigh.c +++ b/lib/route/neigh.c @@ -514,6 +514,14 @@ static void neigh_dump_line(struct nl_object *a, struct nl_dump_params *p) if (n->ce_mask & NEIGH_ATTR_VLAN) nl_dump(p, "vlan %d ", n->n_vlan); + if (n->ce_mask & NEIGH_ATTR_MASTER) { + if (link_cache) + nl_dump(p, "%s ", rtnl_link_i2name(link_cache, n->n_master, + state, sizeof(state))); + else + nl_dump(p, "%d ", n->n_master); + } + rtnl_neigh_state2str(n->n_state, state, sizeof(state)); rtnl_neigh_flags2str(n->n_flags, flags, sizeof(flags)); |