]> granicus.if.org Git - strace/commitdiff
rtnl_link: add IFLA_BRPORT_BACKUP_PORT attribute
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 19 Aug 2018 09:47:11 +0000 (11:47 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 27 Aug 2018 23:41:41 +0000 (23:41 +0000)
Introduced by Linux commit v4.19-rc1~140^2~288^2.

* xlat/rtnl_ifla_brport_attrs.in (IFLA_BRPORT_BACKUP_PORT): New
constant.
* rtnl_link.c (ifla_brport_nla_decoders) <[IFLA_BRPORT_BACKUP_PORT]>:
New decoder.

rtnl_link.c
xlat/rtnl_ifla_brport_attrs.in

index 2421088a967a7a27330f38cfcfc1c14f588aa435..67ac7d1551a32b553aacae4e454007227ef215fb 100644 (file)
@@ -171,7 +171,8 @@ static const nla_decoder_t ifla_brport_nla_decoders[] = {
        [IFLA_BRPORT_BCAST_FLOOD]               = decode_nla_u8,
        [IFLA_BRPORT_GROUP_FWD_MASK]            = decode_nla_u16,
        [IFLA_BRPORT_NEIGH_SUPPRESS]            = decode_nla_u8,
-       [IFLA_BRPORT_ISOLATED]                  = decode_nla_u8
+       [IFLA_BRPORT_ISOLATED]                  = decode_nla_u8,
+       [IFLA_BRPORT_BACKUP_PORT]               = decode_nla_ifindex,
 };
 
 static bool
index 74c88417fe7043e346e4fde79caccda094c83bc7..701771659c5e5527de8a874d6c2c2c7fbe1adcc2 100644 (file)
@@ -32,3 +32,4 @@ IFLA_BRPORT_BCAST_FLOOD               30
 IFLA_BRPORT_GROUP_FWD_MASK     31
 IFLA_BRPORT_NEIGH_SUPPRESS     32
 IFLA_BRPORT_ISOLATED           33
+IFLA_BRPORT_BACKUP_PORT                34