]> granicus.if.org Git - strace/commit
rtnl_route: decode struct rta_mfc_stats and struct rtvia unconditionally
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 20 Oct 2019 10:59:51 +0000 (12:59 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 20 Oct 2019 17:06:49 +0000 (17:06 +0000)
commitc19aff23b057bd0f8d00636c0f38653d33197d7c
tree26b4d375b876d9cafe42bc05622a40d8a120c475
parent46ee6345bbaf8c2e80b5bf51e0bb01558c4d26b6
rtnl_route: decode struct rta_mfc_stats and struct rtvia unconditionally

* rtnl_route.c (struct_rta_mfc_stats, struct_rtvia): New typedefs.
[HAVE_STRUCT_RTA_MFC_STATS]: Add a static_assert to check
that sizeof(struct rta_mfc_stats) has the expected value.
[HAVE_STRUCT_RTVIA]: Add a static_assert to check that sizeof(struct
rtvia) has the expected value.
(decode_rta_mfc_stats) [HAVE_STRUCT_RTA_MFC_STATS]: Remove guard.
(decode_rta_mfc_stats): Change the type of mfcs variable to
struct_rta_mfc_stats.
(decode_rtvia): Change the type of via variable to struct_rtvia.

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