Closed a-ilin closed 3 months ago
Thanks for your PR! Could you add a test as well please?
@stapelberg , thank you for review!
Please find the test added in the subsequent commit: https://github.com/google/nftables/pull/264/commits/92bef44239a926d6941b17d7b64e8730ac111365
Update: rebased to the top of main
branch.
The current implementation of CT expression does not work for CT keys:
CtKeySRC
:saddr
CtKeyDST
:daddr
CtKeyPROTOSRC
:proto-src
CtKeyPROTODST
:proto-dst
These CT keys require direction parameter: https://github.com/torvalds/linux/blob/7846b618e0a4c3e08888099d1d4512722b39ca99/net/netfilter/nft_ct.c#L465
This PR adds direction parameter for the CT keys.