diff options
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, |