blob: 02e28c529b29bcb77d24d950af6873d66995ff31 [file] [log] [blame]
Patrick McHardycc4723c2014-02-05 15:03:38 +00001#ifndef _NFT_REJECT_H_
2#define _NFT_REJECT_H_
3
4struct nft_reject {
5 enum nft_reject_types type:8;
6 u8 icmp_code;
7};
8
9extern const struct nla_policy nft_reject_policy[];
10
Liping Zhang89e1f6d2016-08-22 01:02:18 +080011int nft_reject_validate(const struct nft_ctx *ctx,
12 const struct nft_expr *expr,
13 const struct nft_data **data);
14
Patrick McHardycc4723c2014-02-05 15:03:38 +000015int nft_reject_init(const struct nft_ctx *ctx,
16 const struct nft_expr *expr,
17 const struct nlattr * const tb[]);
18
19int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr);
20
Pablo Neira Ayuso51b0a5d2014-09-26 14:35:14 +020021int nft_reject_icmp_code(u8 code);
22int nft_reject_icmpv6_code(u8 code);
Patrick McHardy05513e92014-02-05 15:03:39 +000023
Patrick McHardycc4723c2014-02-05 15:03:38 +000024#endif