mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
e58f33cc84
The kernel already has defines for this, but they are in uapi exposed headers. Including these from netns.h causes build errors and also adds unneeded dependencies on heads that we don't need. So move these defines to netfilter_defs.h and place the uapi ones in ifndef __KERNEL__ to keep them for userspace. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
23 lines
471 B
C
23 lines
471 B
C
/* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
|
|
#ifndef __LINUX_ARP_NETFILTER_H
|
|
#define __LINUX_ARP_NETFILTER_H
|
|
|
|
/* ARP-specific defines for netfilter.
|
|
* (C)2002 Rusty Russell IBM -- This code is GPL.
|
|
*/
|
|
|
|
#include <linux/netfilter.h>
|
|
|
|
/* There is no PF_ARP. */
|
|
#define NF_ARP 0
|
|
|
|
/* ARP Hooks */
|
|
#define NF_ARP_IN 0
|
|
#define NF_ARP_OUT 1
|
|
#define NF_ARP_FORWARD 2
|
|
|
|
#ifndef __KERNEL__
|
|
#define NF_ARP_NUMHOOKS 3
|
|
#endif
|
|
|
|
#endif /* __LINUX_ARP_NETFILTER_H */
|