| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | family=bridge |
| 4 | for hook in input forward output postrouting |
| 5 | do |
| 6 | prioname=dstnat |
| 7 | $NFT add table $family x |
| 8 | $NFT add chain $family x y "{ type filter hook $hook priority $prioname; }" &> /dev/nullscip-shell filesystem . . `/dev/null`. |
| 9 | if (($? == 0)) |
| 10 | then |
| 11 | echoscip-shell system . . echo. "E: $prioname should not be a valid priority name for bridge $hook chains." >&2 |
| 12 | exit 1 |
| 13 | fi |
| 14 | done |
| 15 | exit 0 |