iprule: amend ipproto netlink nla_put_u32 to nla_put_u8
authorPaul Donald <[email protected]>
Fri, 13 Dec 2024 03:17:50 +0000 (04:17 +0100)
committerRobert Marko <[email protected]>
Wed, 2 Apr 2025 08:58:38 +0000 (10:58 +0200)
commit61ae5732adea8bafcdf158c979a0a0d68b2cff62
tree1cf95ac479ceace1ad6b7093f3bc6f04c2af4038
parentea01ed41f3212ecbe000422f3c122a01b93fe874
iprule: amend ipproto netlink nla_put_u32 to nla_put_u8

FRA_IP_PROTO expects an 8 bit value.

Follow-up fix for d29cf707478cfc5465fc8a7b8ccfde72a739a4f6.

uint8 prevents the kernel log message:
netlink: 'netifd': attribute type 22 has an invalid length.

The message is otherwise harmless; ip rules using ipproto are created
successfully.

Tested on 24.10-snapshot

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/netifd/pull/42
Signed-off-by: Robert Marko <[email protected]>
system-linux.c