• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _NFNL_CTHELPER_H_
3 #define _NFNL_CTHELPER_H_
4 
5 #define NFCT_HELPER_STATUS_DISABLED	0
6 #define NFCT_HELPER_STATUS_ENABLED	1
7 
8 enum nfnl_cthelper_msg_types {
9 	NFNL_MSG_CTHELPER_NEW,
10 	NFNL_MSG_CTHELPER_GET,
11 	NFNL_MSG_CTHELPER_DEL,
12 	NFNL_MSG_CTHELPER_MAX
13 };
14 
15 enum nfnl_cthelper_type {
16 	NFCTH_UNSPEC,
17 	NFCTH_NAME,
18 	NFCTH_TUPLE,
19 	NFCTH_QUEUE_NUM,
20 	NFCTH_POLICY,
21 	NFCTH_PRIV_DATA_LEN,
22 	NFCTH_STATUS,
23 	__NFCTH_MAX
24 };
25 #define NFCTH_MAX (__NFCTH_MAX - 1)
26 
27 enum nfnl_cthelper_policy_type {
28 	NFCTH_POLICY_SET_UNSPEC,
29 	NFCTH_POLICY_SET_NUM,
30 	NFCTH_POLICY_SET,
31 	NFCTH_POLICY_SET1	= NFCTH_POLICY_SET,
32 	NFCTH_POLICY_SET2,
33 	NFCTH_POLICY_SET3,
34 	NFCTH_POLICY_SET4,
35 	__NFCTH_POLICY_SET_MAX
36 };
37 #define NFCTH_POLICY_SET_MAX (__NFCTH_POLICY_SET_MAX - 1)
38 
39 enum nfnl_cthelper_pol_type {
40 	NFCTH_POLICY_UNSPEC,
41 	NFCTH_POLICY_NAME,
42 	NFCTH_POLICY_EXPECT_MAX,
43 	NFCTH_POLICY_EXPECT_TIMEOUT,
44 	__NFCTH_POLICY_MAX
45 };
46 #define NFCTH_POLICY_MAX (__NFCTH_POLICY_MAX - 1)
47 
48 enum nfnl_cthelper_tuple_type {
49 	NFCTH_TUPLE_UNSPEC,
50 	NFCTH_TUPLE_L3PROTONUM,
51 	NFCTH_TUPLE_L4PROTONUM,
52 	__NFCTH_TUPLE_MAX,
53 };
54 #define NFCTH_TUPLE_MAX (__NFCTH_TUPLE_MAX - 1)
55 
56 #endif /* _NFNL_CTHELPER_H */
57