linux/net/netfilter/nf_internals.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _NF_INTERNALS_H
#define _NF_INTERNALS_H

#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>

/* nf_conntrack_netlink.c: applied on tuple filters */
#define CTA_FILTER_F_CTA_IP_SRC
#define CTA_FILTER_F_CTA_IP_DST
#define CTA_FILTER_F_CTA_TUPLE_ZONE
#define CTA_FILTER_F_CTA_PROTO_NUM
#define CTA_FILTER_F_CTA_PROTO_SRC_PORT
#define CTA_FILTER_F_CTA_PROTO_DST_PORT
#define CTA_FILTER_F_CTA_PROTO_ICMP_TYPE
#define CTA_FILTER_F_CTA_PROTO_ICMP_CODE
#define CTA_FILTER_F_CTA_PROTO_ICMP_ID
#define CTA_FILTER_F_CTA_PROTO_ICMPV6_TYPE
#define CTA_FILTER_F_CTA_PROTO_ICMPV6_CODE
#define CTA_FILTER_F_CTA_PROTO_ICMPV6_ID
#define CTA_FILTER_F_MAX
#define CTA_FILTER_F_ALL
#define CTA_FILTER_FLAG(ctattr)

/* nf_queue.c */
void nf_queue_nf_hook_drop(struct net *net);

/* nf_log.c */
int __init netfilter_log_init(void);

#ifdef CONFIG_LWTUNNEL
/* nf_hooks_lwtunnel.c */
int __init netfilter_lwtunnel_init(void);
void netfilter_lwtunnel_fini(void);
#endif

/* core.c */
void nf_hook_entries_delete_raw(struct nf_hook_entries __rcu **pp,
				const struct nf_hook_ops *reg);
int nf_hook_entries_insert_raw(struct nf_hook_entries __rcu **pp,
				const struct nf_hook_ops *reg);
#endif