]> granicus.if.org Git - strace/commit
rtnl_neightbl: always decode struct ndt_config and struct ndt_stats
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 17 Oct 2019 13:50:09 +0000 (15:50 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 20 Oct 2019 11:09:48 +0000 (11:09 +0000)
commit46ee6345bbaf8c2e80b5bf51e0bb01558c4d26b6
tree9ed068b1795d46cde6d4318c847d2f0dde60a369
parente1a9e0f35d5e711e8b28044155b2e29b33943c8f
rtnl_neightbl: always decode struct ndt_config and struct ndt_stats

* rtnl_neightbl.c (struct_ndt_config, struct_ndt_stats): New typedefs.
[HAVE_STRUCT_NDT_CONFIG]: New static_assert to check
that sizeof(struct ndt_config) has the expected value.
[HAVE_STRUCT_NDT_STATS]: New static_assert to check
that sizeof(struct ndt_stats) has the expected value.
(decode_ndt_config) [HAVE_STRUCT_NDT_CONFIG]: Remove guard.
(decode_ndt_config): Change the type of ndtc variable
to struct_ndt_config.
(decode_ndt_stats) [HAVE_STRUCT_NDT_STATS]: Remove guard.
(decode_ndt_stats): Change the type of ndtst variable
to struct_ndt_stats.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1758201
rtnl_neightbl.c