iproute2/include/uapi/linux/netfilter_ipv6.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
   2/* IPv6-specific defines for netfilter. 
   3 * (C)1998 Rusty Russell -- This code is GPL.
   4 * (C)1999 David Jeffery
   5 *   this header was blatantly ripped from netfilter_ipv4.h 
   6 *   it's amazing what adding a bunch of 6s can do =8^)
   7 */
   8#ifndef __LINUX_IP6_NETFILTER_H
   9#define __LINUX_IP6_NETFILTER_H
  10
  11
  12#include <linux/netfilter.h>
  13
  14/* only for userspace compatibility */
  15
  16#include <limits.h> /* for INT_MIN, INT_MAX */
  17
  18/* IP6 Hooks */
  19/* After promisc drops, checksum checks. */
  20#define NF_IP6_PRE_ROUTING      0
  21/* If the packet is destined for this box. */
  22#define NF_IP6_LOCAL_IN         1
  23/* If the packet is destined for another interface. */
  24#define NF_IP6_FORWARD          2
  25/* Packets coming from a local process. */
  26#define NF_IP6_LOCAL_OUT                3
  27/* Packets about to hit the wire. */
  28#define NF_IP6_POST_ROUTING     4
  29#define NF_IP6_NUMHOOKS         5
  30
  31
  32enum nf_ip6_hook_priorities {
  33        NF_IP6_PRI_FIRST = INT_MIN,
  34        NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
  35        NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
  36        NF_IP6_PRI_RAW = -300,
  37        NF_IP6_PRI_SELINUX_FIRST = -225,
  38        NF_IP6_PRI_CONNTRACK = -200,
  39        NF_IP6_PRI_MANGLE = -150,
  40        NF_IP6_PRI_NAT_DST = -100,
  41        NF_IP6_PRI_FILTER = 0,
  42        NF_IP6_PRI_SECURITY = 50,
  43        NF_IP6_PRI_NAT_SRC = 100,
  44        NF_IP6_PRI_SELINUX_LAST = 225,
  45        NF_IP6_PRI_CONNTRACK_HELPER = 300,
  46        NF_IP6_PRI_LAST = INT_MAX,
  47};
  48
  49
  50#endif /* __LINUX_IP6_NETFILTER_H */
  51