Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_NETFILTER_CORE_H_
0003 #define __LINUX_NETFILTER_CORE_H_
0004 
0005 #include <uapi/linux/netfilter.h>
0006 
0007 /* in/out/forward only */
0008 #define NF_ARP_NUMHOOKS 3
0009 
0010 /* max hook is NF_DN_ROUTE (6), also see uapi/linux/netfilter_decnet.h */
0011 #define NF_DN_NUMHOOKS 7
0012 
0013 #if IS_ENABLED(CONFIG_DECNET)
0014 /* Largest hook number + 1, see uapi/linux/netfilter_decnet.h */
0015 #define NF_MAX_HOOKS    NF_DN_NUMHOOKS
0016 #else
0017 #define NF_MAX_HOOKS    NF_INET_NUMHOOKS
0018 #endif
0019 
0020 #endif