1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _NFT_COMPAT_NFNETLINK_H_ 3 #define _NFT_COMPAT_NFNETLINK_H_ 4 5 enum nft_target_attributes { 6 NFTA_TARGET_UNSPEC, 7 NFTA_TARGET_NAME, 8 NFTA_TARGET_REV, 9 NFTA_TARGET_INFO, 10 __NFTA_TARGET_MAX 11 }; 12 #define NFTA_TARGET_MAX (__NFTA_TARGET_MAX - 1) 13 14 enum nft_match_attributes { 15 NFTA_MATCH_UNSPEC, 16 NFTA_MATCH_NAME, 17 NFTA_MATCH_REV, 18 NFTA_MATCH_INFO, 19 __NFTA_MATCH_MAX 20 }; 21 #define NFTA_MATCH_MAX (__NFTA_MATCH_MAX - 1) 22 23 #define NFT_COMPAT_NAME_MAX 32 24 25 enum { 26 NFNL_MSG_COMPAT_GET, 27 NFNL_MSG_COMPAT_MAX 28 }; 29 30 enum { 31 NFTA_COMPAT_UNSPEC = 0, 32 NFTA_COMPAT_NAME, 33 NFTA_COMPAT_REV, 34 NFTA_COMPAT_TYPE, 35 __NFTA_COMPAT_MAX, 36 }; 37 #define NFTA_COMPAT_MAX (__NFTA_COMPAT_MAX - 1) 38 39 #endif 40