]> Git Repo - J-linux.git/blob - include/net/netfilter/nft_reject.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / include / net / netfilter / nft_reject.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NFT_REJECT_H_
3 #define _NFT_REJECT_H_
4
5 #include <linux/types.h>
6 #include <net/netlink.h>
7 #include <net/netfilter/nf_tables.h>
8 #include <uapi/linux/netfilter/nf_tables.h>
9
10 struct nft_reject {
11         enum nft_reject_types   type:8;
12         u8                      icmp_code;
13 };
14
15 extern const struct nla_policy nft_reject_policy[];
16
17 int nft_reject_validate(const struct nft_ctx *ctx,
18                         const struct nft_expr *expr);
19
20 int nft_reject_init(const struct nft_ctx *ctx,
21                     const struct nft_expr *expr,
22                     const struct nlattr * const tb[]);
23
24 int nft_reject_dump(struct sk_buff *skb,
25                     const struct nft_expr *expr, bool reset);
26
27 int nft_reject_icmp_code(u8 code);
28 int nft_reject_icmpv6_code(u8 code);
29
30 #endif
This page took 0.024144 seconds and 4 git commands to generate.