Commit | Line | Data |
---|---|---|
cc4723ca PM |
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 | ||
11 | int nft_reject_init(const struct nft_ctx *ctx, | |
12 | const struct nft_expr *expr, | |
13 | const struct nlattr * const tb[]); | |
14 | ||
15 | int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr); | |
16 | ||
51b0a5d8 PNA |
17 | int nft_reject_icmp_code(u8 code); |
18 | int nft_reject_icmpv6_code(u8 code); | |
05513e9e | 19 | |
cc4723ca | 20 | #endif |