netfilter_defs.h 486 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_NETFILTER_CORE_H_
  3. #define __LINUX_NETFILTER_CORE_H_
  4. #include <uapi/linux/netfilter.h>
  5. /* in/out/forward only */
  6. #define NF_ARP_NUMHOOKS 3
  7. /* max hook is NF_DN_ROUTE (6), also see uapi/linux/netfilter_decnet.h */
  8. #define NF_DN_NUMHOOKS 7
  9. #if IS_ENABLED(CONFIG_DECNET)
  10. /* Largest hook number + 1, see uapi/linux/netfilter_decnet.h */
  11. #define NF_MAX_HOOKS NF_DN_NUMHOOKS
  12. #else
  13. #define NF_MAX_HOOKS NF_INET_NUMHOOKS
  14. #endif
  15. #endif