diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-01-03 08:12:12 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-01-03 08:14:36 +0100 |
commit | bd2481c4e886599a30687933ec079db86b9e7b0a (patch) | |
tree | 76d6f0f5824c19c748c99989790eb412a2effb58 /zebra/if_netlink.c | |
parent | Merge pull request #5594 from ton31337/feature/rhel8_docker (diff) | |
download | frr-bd2481c4e886599a30687933ec079db86b9e7b0a.tar.xz frr-bd2481c4e886599a30687933ec079db86b9e7b0a.zip |
zebra: use correct attr size for netlink enc
a bool is not 4 bytes
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | zebra/if_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index c09007bcb..8c84eb592 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -1467,7 +1467,7 @@ int netlink_protodown(struct interface *ifp, bool down) req.ifa.ifi_index = ifp->ifindex; - addattr_l(&req.n, sizeof(req), IFLA_PROTO_DOWN, &down, 4); + addattr_l(&req.n, sizeof(req), IFLA_PROTO_DOWN, &down, sizeof(down)); addattr_l(&req.n, sizeof(req), IFLA_LINK, &ifp->ifindex, 4); return netlink_talk(netlink_talk_filter, &req.n, &zns->netlink_cmd, zns, |