From 67bef1540ebdbd64f7d9dc65b76505d161536759 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 7 Jul 2020 18:40:11 +0200 Subject: 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 --- iptables/nft.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables') 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) -- cgit v1.2.3