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.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -26,4 +26,15 @@ · 25 unmodified lines | |||
| 26 | #define NF_BR_BROUTING 5 | 26 | #define NF_BR_BROUTING 5 |
| 27 | #define NF_BR_NUMHOOKS 6 | 27 | #define NF_BR_NUMHOOKS 6 |
| 28 | 28 | ||
| 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 | |||
| 29 | #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */ | 40 | #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */ |