dm-crypt: use __bio_add_page to add single page to clone bio
[linux-block.git] / net / netfilter / nf_internals.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f6ebe77f
HW
2#ifndef _NF_INTERNALS_H
3#define _NF_INTERNALS_H
4
f6ebe77f
HW
5#include <linux/list.h>
6#include <linux/skbuff.h>
7#include <linux/netdevice.h>
8
cb8aa9a3
RB
9/* nf_conntrack_netlink.c: applied on tuple filters */
10#define CTA_FILTER_F_CTA_IP_SRC (1 << 0)
11#define CTA_FILTER_F_CTA_IP_DST (1 << 1)
12#define CTA_FILTER_F_CTA_TUPLE_ZONE (1 << 2)
13#define CTA_FILTER_F_CTA_PROTO_NUM (1 << 3)
14#define CTA_FILTER_F_CTA_PROTO_SRC_PORT (1 << 4)
15#define CTA_FILTER_F_CTA_PROTO_DST_PORT (1 << 5)
16#define CTA_FILTER_F_CTA_PROTO_ICMP_TYPE (1 << 6)
17#define CTA_FILTER_F_CTA_PROTO_ICMP_CODE (1 << 7)
18#define CTA_FILTER_F_CTA_PROTO_ICMP_ID (1 << 8)
19#define CTA_FILTER_F_CTA_PROTO_ICMPV6_TYPE (1 << 9)
20#define CTA_FILTER_F_CTA_PROTO_ICMPV6_CODE (1 << 10)
21#define CTA_FILTER_F_CTA_PROTO_ICMPV6_ID (1 << 11)
22#define CTA_FILTER_F_MAX (1 << 12)
23#define CTA_FILTER_F_ALL (CTA_FILTER_F_MAX-1)
24#define CTA_FILTER_FLAG(ctattr) CTA_FILTER_F_ ## ctattr
25
f6ebe77f 26/* nf_queue.c */
26888dfd 27void nf_queue_nf_hook_drop(struct net *net);
f6ebe77f
HW
28
29/* nf_log.c */
c1b1203d 30int __init netfilter_log_init(void);
f6ebe77f 31
06cad3ac
FW
32/* core.c */
33void nf_hook_entries_delete_raw(struct nf_hook_entries __rcu **pp,
34 const struct nf_hook_ops *reg);
35int nf_hook_entries_insert_raw(struct nf_hook_entries __rcu **pp,
36 const struct nf_hook_ops *reg);
f6ebe77f 37#endif