Patrick McHardy | cc4723c | 2014-02-05 15:03:38 +0000 | [diff] [blame] | 1 | #ifndef _NFT_REJECT_H_ |
| 2 | #define _NFT_REJECT_H_ |
| 3 | |
| 4 | struct nft_reject { |
| 5 | enum nft_reject_types type:8; |
| 6 | u8 icmp_code; |
| 7 | }; |
| 8 | |
| 9 | extern const struct nla_policy nft_reject_policy[]; |
| 10 | |
Liping Zhang | 89e1f6d | 2016-08-22 01:02:18 +0800 | [diff] [blame] | 11 | int nft_reject_validate(const struct nft_ctx *ctx, |
| 12 | const struct nft_expr *expr, |
| 13 | const struct nft_data **data); |
| 14 | |
Patrick McHardy | cc4723c | 2014-02-05 15:03:38 +0000 | [diff] [blame] | 15 | int nft_reject_init(const struct nft_ctx *ctx, |
| 16 | const struct nft_expr *expr, |
| 17 | const struct nlattr * const tb[]); |
| 18 | |
| 19 | int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr); |
| 20 | |
Pablo Neira Ayuso | 51b0a5d | 2014-09-26 14:35:14 +0200 | [diff] [blame] | 21 | int nft_reject_icmp_code(u8 code); |
| 22 | int nft_reject_icmpv6_code(u8 code); |
Patrick McHardy | 05513e9 | 2014-02-05 15:03:39 +0000 | [diff] [blame] | 23 | |
Patrick McHardy | cc4723c | 2014-02-05 15:03:38 +0000 | [diff] [blame] | 24 | #endif |