mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
rtnetlink: fix FDB size computation
[ Upstream commitf82ef3e10a] Add missing NDA_VLAN attribute's size. Fixes:1e53d5bb88("net: Pass VLAN ID to rtnl_fdb_notify.") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6ef59b9861
commit
aece024e38
@@ -2600,7 +2600,10 @@ nla_put_failure:
|
||||
|
||||
static inline size_t rtnl_fdb_nlmsg_size(void)
|
||||
{
|
||||
return NLMSG_ALIGN(sizeof(struct ndmsg)) + nla_total_size(ETH_ALEN);
|
||||
return NLMSG_ALIGN(sizeof(struct ndmsg)) +
|
||||
nla_total_size(ETH_ALEN) + /* NDA_LLADDR */
|
||||
nla_total_size(sizeof(u16)) + /* NDA_VLAN */
|
||||
0;
|
||||
}
|
||||
|
||||
static void rtnl_fdb_notify(struct net_device *dev, u8 *addr, u16 vid, int type)
|
||||
|
||||
Reference in New Issue
Block a user