From d3c58c04cfb22e206cc522c92ffc3fc7e5e76da1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 28 Jun 2022 13:23:43 +0200 Subject: [PATCH] rtnl: expose ifinfomsg.ifi_change member For certain operations, such as bringing up interfaces, it is required to initialize the ifi_change mask in the ifinfomsg struct. Signed-off-by: Jo-Philipp Wich --- lib/rtnl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rtnl.c b/lib/rtnl.c index be2b3a83..b8d9cb2b 100644 --- a/lib/rtnl.c +++ b/lib/rtnl.c @@ -676,12 +676,13 @@ static const uc_nl_nested_spec_t link_attrs_af_spec_rta = { static const uc_nl_nested_spec_t link_msg = { .headsize = NLA_ALIGN(sizeof(struct ifinfomsg)), - .nattrs = 23, + .nattrs = 24, .attrs = { { IFLA_UNSPEC, "family", DT_U8, 0, MEMBER(ifinfomsg, ifi_family) }, { IFLA_UNSPEC, "type", DT_U16, 0, MEMBER(ifinfomsg, ifi_type) }, { IFLA_UNSPEC, "dev", DT_NETDEV, 0, MEMBER(ifinfomsg, ifi_index) }, { IFLA_UNSPEC, "flags", DT_FLAGS, 0, MEMBER(ifinfomsg, ifi_flags) }, + { IFLA_UNSPEC, "change", DT_FLAGS, 0, MEMBER(ifinfomsg, ifi_change) }, { IFLA_ADDRESS, "address", DT_LLADDR, 0, NULL }, { IFLA_BROADCAST, "broadcast", DT_LLADDR, 0, NULL }, { IFLA_TXQLEN, "txqlen", DT_U32, 0, NULL },