Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ct: Specify direction for saddr, daddr, proto-src, proto-dst #264

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

a-ilin
Copy link
Contributor

@a-ilin a-ilin commented Jul 22, 2024

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.

@stapelberg
Copy link
Collaborator

Thanks for your PR! Could you add a test as well please?

@a-ilin
Copy link
Contributor Author

a-ilin commented Aug 2, 2024

@stapelberg , thank you for review!

Please find the test added in the subsequent commit: 92bef44

@a-ilin
Copy link
Contributor Author

a-ilin commented Aug 2, 2024

Update: rebased to the top of main branch.

@stapelberg stapelberg merged commit b76fdc8 into google:main Aug 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants