Message ID | 1401512685-29047-1-git-send-email-roopa@cumulusnetworks.com |
---|---|
State | Superseded, archived |
Delegated to: | stephen hemminger |
Headers | show |
diff --git a/bridge/fdb.c b/bridge/fdb.c index 336cf9d..d7c42f0 100644 --- a/bridge/fdb.c +++ b/bridge/fdb.c @@ -152,6 +152,10 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) if (r->ndm_flags & NTF_ROUTER) fprintf(fp, "router "); + if (tb[NDA_MASTER]) + fprintf(fp, "bridge %s ", + ll_index_to_name(rta_getattr_u32(tb[NDA_MASTER]))); + fprintf(fp, "%s\n", state_n2a(r->ndm_state)); return 0; } diff --git a/include/linux/neighbour.h b/include/linux/neighbour.h index d3ef583..4a1d7e9 100644 --- a/include/linux/neighbour.h +++ b/include/linux/neighbour.h @@ -24,6 +24,7 @@ enum { NDA_PORT, NDA_VNI, NDA_IFINDEX, + NDA_MASTER, __NDA_MAX };