diff options
author | Phil Sutter <phil@nwl.cc> | 2020-07-07 18:40:11 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-07-24 19:16:20 +0200 |
commit | 67bef1540ebdbd64f7d9dc65b76505d161536759 (patch) | |
tree | 10c437318e8e8aa8323b8855b6c5fc5257a83bb9 /iptables | |
parent | b906191d4b5d2606df892855e53b0b62e53e7728 (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <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) |