blob: cf2b7ae2b9d82b11cfa7a810130187e2c763881a [file] [log] [blame]
Patrick McHardy96518512013-10-14 11:00:02 +02001#ifndef _NET_NF_TABLES_CORE_H
2#define _NET_NF_TABLES_CORE_H
3
Joe Perches5eccdfa2013-10-19 22:05:31 -07004int nf_tables_core_module_init(void);
5void nf_tables_core_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +02006
Joe Perches5eccdfa2013-10-19 22:05:31 -07007int nft_immediate_module_init(void);
8void nft_immediate_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +02009
Patrick McHardycb7dbfd2013-10-10 23:35:40 +020010struct nft_cmp_fast_expr {
11 u32 data;
12 enum nft_registers sreg:8;
13 u8 len;
14};
15
16extern const struct nft_expr_ops nft_cmp_fast_ops;
17
Joe Perches5eccdfa2013-10-19 22:05:31 -070018int nft_cmp_module_init(void);
19void nft_cmp_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +020020
Joe Perches5eccdfa2013-10-19 22:05:31 -070021int nft_lookup_module_init(void);
22void nft_lookup_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +020023
Joe Perches5eccdfa2013-10-19 22:05:31 -070024int nft_bitwise_module_init(void);
25void nft_bitwise_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +020026
Joe Perches5eccdfa2013-10-19 22:05:31 -070027int nft_byteorder_module_init(void);
28void nft_byteorder_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +020029
Patrick McHardyc29b72e2013-10-10 11:06:41 +020030struct nft_payload {
31 enum nft_payload_bases base:8;
32 u8 offset;
33 u8 len;
34 enum nft_registers dreg:8;
35};
36
37extern const struct nft_expr_ops nft_payload_fast_ops;
38
Joe Perches5eccdfa2013-10-19 22:05:31 -070039int nft_payload_module_init(void);
40void nft_payload_module_exit(void);
Patrick McHardy96518512013-10-14 11:00:02 +020041
42#endif /* _NET_NF_TABLES_CORE_H */