FILE
netfilter_bridge.h
File preview with syntax highlighting.
linux-6.19.14/include/uapi/linux/netfilter_bridge.h
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2#ifndef _UAPI__LINUX_BRIDGE_NETFILTER_H 3#define _UAPI__LINUX_BRIDGE_NETFILTER_H 4 5/* bridge-specific defines for netfilter. 6 */ 7 8#ifndef __KERNEL__ 9#include <netinet/if_ether.h> /* for __UAPI_DEF_ETHHDR if defined */ 10#endif 11 12#include <linux/in.h> 13#include <linux/netfilter.h> 14#include <linux/if_ether.h> 15#include <linux/if_vlan.h> 16#include <linux/if_pppox.h> 17 18#ifndef __KERNEL__ 19#include <limits.h> /* for INT_MIN, INT_MAX */ 20#endif 21 22/* Bridge Hooks */ 23/* After promisc drops, checksum checks. */ 24#define NF_BR_PRE_ROUTING 0 25/* If the packet is destined for this box. */ 26#define NF_BR_LOCAL_IN 1 27/* If the packet is destined for another interface. */ 28#define NF_BR_FORWARD 2 29/* Packets coming from a local process. */ 30#define NF_BR_LOCAL_OUT 3 31/* Packets about to hit the wire. */ 32#define NF_BR_POST_ROUTING 4 33/* Not really a hook, but used for the ebtables broute table */ 34#define NF_BR_BROUTING 5 35#define NF_BR_NUMHOOKS 6 36 37enum nf_br_hook_priorities { 38 NF_BR_PRI_FIRST = INT_MIN, 39 NF_BR_PRI_NAT_DST_BRIDGED = -300, 40 NF_BR_PRI_FILTER_BRIDGED = -200, 41 NF_BR_PRI_BRNF = 0, 42 NF_BR_PRI_NAT_DST_OTHER = 100, 43 NF_BR_PRI_FILTER_OTHER = 200, 44 NF_BR_PRI_NAT_SRC = 300, 45 NF_BR_PRI_LAST = INT_MAX, 46}; 47 48#endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */
~/
Read-only file preview.