Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI__LINUX_BRIDGE_NETFILTER_H
0003 #define _UAPI__LINUX_BRIDGE_NETFILTER_H
0004 
0005 /* bridge-specific defines for netfilter. 
0006  */
0007 
0008 #include <linux/in.h>
0009 #include <linux/netfilter.h>
0010 #include <linux/if_ether.h>
0011 #include <linux/if_vlan.h>
0012 #include <linux/if_pppox.h>
0013 
0014 #ifndef __KERNEL__
0015 #include <limits.h> /* for INT_MIN, INT_MAX */
0016 #endif
0017 
0018 /* Bridge Hooks */
0019 /* After promisc drops, checksum checks. */
0020 #define NF_BR_PRE_ROUTING   0
0021 /* If the packet is destined for this box. */
0022 #define NF_BR_LOCAL_IN      1
0023 /* If the packet is destined for another interface. */
0024 #define NF_BR_FORWARD       2
0025 /* Packets coming from a local process. */
0026 #define NF_BR_LOCAL_OUT     3
0027 /* Packets about to hit the wire. */
0028 #define NF_BR_POST_ROUTING  4
0029 /* Not really a hook, but used for the ebtables broute table */
0030 #define NF_BR_BROUTING      5
0031 #define NF_BR_NUMHOOKS      6
0032 
0033 enum nf_br_hook_priorities {
0034     NF_BR_PRI_FIRST = INT_MIN,
0035     NF_BR_PRI_NAT_DST_BRIDGED = -300,
0036     NF_BR_PRI_FILTER_BRIDGED = -200,
0037     NF_BR_PRI_BRNF = 0,
0038     NF_BR_PRI_NAT_DST_OTHER = 100,
0039     NF_BR_PRI_FILTER_OTHER = 200,
0040     NF_BR_PRI_NAT_SRC = 300,
0041     NF_BR_PRI_LAST = INT_MAX,
0042 };
0043 
0044 #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */