mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
![Florian Westphal](/assets/img/avatar_default.png)
This can be same as NF_INET_NUMHOOKS if we don't support DECNET. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
20 lines
486 B
C
20 lines
486 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_NETFILTER_CORE_H_
|
|
#define __LINUX_NETFILTER_CORE_H_
|
|
|
|
#include <uapi/linux/netfilter.h>
|
|
|
|
/* in/out/forward only */
|
|
#define NF_ARP_NUMHOOKS 3
|
|
|
|
/* max hook is NF_DN_ROUTE (6), also see uapi/linux/netfilter_decnet.h */
|
|
#define NF_DN_NUMHOOKS 7
|
|
|
|
#if IS_ENABLED(CONFIG_DECNET)
|
|
/* Largest hook number + 1, see uapi/linux/netfilter_decnet.h */
|
|
#define NF_MAX_HOOKS NF_DN_NUMHOOKS
|
|
#else
|
|
#define NF_MAX_HOOKS NF_INET_NUMHOOKS
|
|
#endif
|
|
|
|
#endif
|