License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / include / net / netfilter / nft_reject.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
cc4723ca
PM
2#ifndef _NFT_REJECT_H_
3#define _NFT_REJECT_H_
4
5struct nft_reject {
6 enum nft_reject_types type:8;
7 u8 icmp_code;
8};
9
10extern const struct nla_policy nft_reject_policy[];
11
89e1f6d2
LZ
12int nft_reject_validate(const struct nft_ctx *ctx,
13 const struct nft_expr *expr,
14 const struct nft_data **data);
15
cc4723ca
PM
16int nft_reject_init(const struct nft_ctx *ctx,
17 const struct nft_expr *expr,
18 const struct nlattr * const tb[]);
19
20int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr);
21
51b0a5d8
PNA
22int nft_reject_icmp_code(u8 code);
23int nft_reject_icmpv6_code(u8 code);
05513e9e 24
cc4723ca 25#endif