]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: Reorder enum nft_table_type
authorPhil Sutter <phil@nwl.cc>
Tue, 7 Jul 2020 16:40:11 +0000 (18:40 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 24 Jul 2020 17:16:20 +0000 (19:16 +0200)
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 <phil@nwl.cc>
iptables/nft.h

index fd390e7f90765352e665710ab46d35e28cb73d04..247255ac9e3c5340a590cf978cae8bb4462a0697 100644 (file)
@@ -8,10 +8,10 @@
 #include <libiptc/linux_list.h>
 
 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)