restrict meta nfproto to inet family
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | tests: restrict ct saddr test to inet familytests/ tests/ tests/ +1 more | +23 | 0 replies | |
| 2/4 | tests: remove two non-sensical rulestests/ tests/ | +0 | 0 replies | |
| 3/4 | tests: restrict meta nfproto test cases to inet familytests/ tests/ tests/ +2 more | +36 | 0 replies | |
| 4/4 | evaluate: reject meta nfproto outside of inet familydoc/ src/ | +22 | 1 reply |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Pablo Neira Ayuso |
|---|---|
| Series | A-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH nft 0/4] restrict meta nfproto to inet family
Pablo reports following test case failure:
any/ct.t: ERROR: line 94: src/nft add rule --debug=netlink ip6
test-ip6 output meta nfproto ipv4 ct original saddr 1.2.3.4: This rule should not have failed.
We can't find upper layer protocol in this case, but even if we'd "fix" this it is still non-sensical, as
meta nfproto ipv4
will never match except in the inet family and the ip family, but in the latter case it will always match so it has no effect).
So, first step is to move this to an inet specific test to get rid of the test case failure.
The followup changes then get rid of meta nfproto tests or move them to inet-family-only tests.
The last patch makes nft reject 'meta nfproto' in all families except inet, where this expression is needed in case one wants to explicitly restrict a rule to only ipv4 or ipv6.