History

netfilter: bridge: Expose nf_tables bridge hook priorities through uapi

Netfilter exposes standard hook priorities in case of ipv4, ipv6 and arp but not in case of bridge. This patch exposes the hook priority values of the bridge family (which are different from the formerly mentioned) via uapi so that they can be used by user-space applications just like the others.

Máté Eckl committed 8 years ago

Commit 94276fa1 parent aaecfdb5 files · +14 −11Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/netfilter_bridge.h+11−0
@@ -26,4 +26,15 @@ · 25 unmodified lines
2626 #define NF_BR_BROUTING 5
2727 #define NF_BR_NUMHOOKS 6
2828
29+enum nf_br_hook_priorities {
30+ NF_BR_PRI_FIRST = INT_MIN,
31+ NF_BR_PRI_NAT_DST_BRIDGED = -300,
32+ NF_BR_PRI_FILTER_BRIDGED = -200,
33+ NF_BR_PRI_BRNF = 0,
34+ NF_BR_PRI_NAT_DST_OTHER = 100,
35+ NF_BR_PRI_FILTER_OTHER = 200,
36+ NF_BR_PRI_NAT_SRC = 300,
37+ NF_BR_PRI_LAST = INT_MAX,
38+};
39+
2940 #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */