]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
netlink: fix routing-policy-rule integer type for FRA_TUN_ID
authorThomas Haller <thaller@redhat.com>
Mon, 18 Feb 2019 12:01:56 +0000 (13:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Feb 2019 14:23:35 +0000 (15:23 +0100)
FRA_TUN_ID is a 64 big endian integer. Fix the policy.

FRA_TUN_ID is unused by networkd, hence I think this bug
has no actual consequences.

Fixes: bce67bbee359eec19e6778619b6651100a1c1477
src/libsystemd/sd-netlink/netlink-types.c

index 3fec237c2858e02e7cf49f9c1df22607a85f4ed3..5ef2ba37809fcc10473f0392df5f3936a0268bbb 100644 (file)
@@ -655,7 +655,7 @@ static const NLType rtnl_routing_policy_rule_types[] = {
         [FRA_PRIORITY]            = { .type = NETLINK_TYPE_U32 },
         [FRA_FWMARK]              = { .type = NETLINK_TYPE_U32 },
         [FRA_FLOW]                = { .type = NETLINK_TYPE_U32 },
-        [FRA_TUN_ID]              = { .type = NETLINK_TYPE_U32 },
+        [FRA_TUN_ID]              = { .type = NETLINK_TYPE_U64 },
         [FRA_SUPPRESS_IFGROUP]    = { .type = NETLINK_TYPE_U32 },
         [FRA_SUPPRESS_PREFIXLEN]  = { .type = NETLINK_TYPE_U32 },
         [FRA_TABLE]               = { .type = NETLINK_TYPE_U32 },