The kernel sends IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE as a u16, but ip reads it as a u8. On big endian that is the high byte, so the partner state always prints as 0. Fixes: 39ac2d2b802b ("iplink: bond: print lacp actor/partner oper states as strings") Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Dave Seddon --- ip/iplink_bond_slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/iplink_bond_slave.c b/ip/iplink_bond_slave.c index f4b28fbc..24e73575 100644 --- a/ip/iplink_bond_slave.c +++ b/ip/iplink_bond_slave.c @@ -145,7 +145,7 @@ static void bond_slave_print_opt(struct link_util *lu, FILE *f, struct rtattr *t } if (tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE]) { - __u16 state = rta_getattr_u8(tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE]); + __u16 state = rta_getattr_u16(tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE]); print_int(PRINT_ANY, "ad_partner_oper_port_state", -- 2.55.0