Skip to contentSkip to conversation

tests: py: Actually use all available hooks in bridge/chains.t

PATCH Applied Stefano Brivio 2 participants 2 messages May 24, 2020 – May 25, 2020 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: py: Actually use all available hooks in bridge/chains.t

Despite being explicitly mentioned as available, prerouting and postrouting hooks are not used, filter-pre and filter-post chains are both built to hook on input.

Fixes 25851df85e85 ("tests: regression: revisit chain tests")
---
 tests/py/bridge/chains.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/py/bridge/chains.t +2 -2
index 85dde73e8520..e071d9a3c971 100644
@@ -1,8 +1,8 @@
 # filter chains available are: prerouting, input, output, forward, postrouting
-:filter-pre;type filter hook input priority 0
+:filter-pre;type filter hook prerouting priority 0
 :filter-output;type filter hook output priority 0
 :filter-forward;type filter hook forward priority 0
 :filter-input;type filter hook input priority 0
-:filter-post;type filter hook input priority 0
+:filter-post;type filter hook postrouting priority 0
 
 *bridge;test-bridge;filter-pre,filter-output,filter-forward,filter-input,filter-post
Signature · 1 line
2.26.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Stefano Brivio

Despite being explicitly mentioned as available, prerouting and postrouting hooks are not used, filter-pre and filter-post chains are both built to hook on input.

Applied, thanks.