|
@@ -616,6 +616,8 @@ static int fdb_fill_info(struct sk_buff *skb, const struct net_bridge *br,
|
|
|
|
|
|
if (nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->addr))
|
|
|
goto nla_put_failure;
|
|
|
+ if (nla_put_u32(skb, NDA_MASTER, br->dev->ifindex))
|
|
|
+ goto nla_put_failure;
|
|
|
ci.ndm_used = jiffies_to_clock_t(now - fdb->used);
|
|
|
ci.ndm_confirmed = 0;
|
|
|
ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated);
|
|
@@ -637,6 +639,7 @@ static inline size_t fdb_nlmsg_size(void)
|
|
|
{
|
|
|
return NLMSG_ALIGN(sizeof(struct ndmsg))
|
|
|
+ nla_total_size(ETH_ALEN) /* NDA_LLADDR */
|
|
|
+ + nla_total_size(sizeof(u32)) /* NDA_MASTER */
|
|
|
+ nla_total_size(sizeof(u16)) /* NDA_VLAN */
|
|
|
+ nla_total_size(sizeof(struct nda_cacheinfo));
|
|
|
}
|