summaryrefslogtreecommitdiffhomepage
path: root/lib/rtnl.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-28 13:23:43 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-28 13:26:29 +0200
commitd3c58c04cfb22e206cc522c92ffc3fc7e5e76da1 (patch)
treea4cf875a479bb1a1edc48be13dd885dcec361eb6 /lib/rtnl.c
parent3c8792988930bf7c1bdd7ae4fc1330d246347b4f (diff)
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 <jo@mein.io>
Diffstat (limited to 'lib/rtnl.c')
-rw-r--r--lib/rtnl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rtnl.c b/lib/rtnl.c
index be2b3a8..b8d9cb2 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 },