From: Phil Sutter Date: Tue, 7 Jul 2020 16:40:11 +0000 (+0200) Subject: nft: Reorder enum nft_table_type X-Git-Tag: v1.8.6~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67bef1540ebdbd64f7d9dc65b76505d161536759;p=thirdparty%2Fiptables.git nft: Reorder enum nft_table_type This list of table types is used internally only, the actual values don't matter that much. Reorder them to match the order in which iptables-legacy-save prints them (if present). As a consequence, entries in builtin_table array 'xtables_ipv4' are correctly sorted as well. Signed-off-by: Phil Sutter --- diff --git a/iptables/nft.h b/iptables/nft.h index fd390e7f..247255ac 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -8,10 +8,10 @@ #include enum nft_table_type { - NFT_TABLE_FILTER = 0, - NFT_TABLE_MANGLE, - NFT_TABLE_RAW, + NFT_TABLE_MANGLE = 0, NFT_TABLE_SECURITY, + NFT_TABLE_RAW, + NFT_TABLE_FILTER, NFT_TABLE_NAT, }; #define NFT_TABLE_MAX (NFT_TABLE_NAT + 1)