Skip to content

Conversation

@ti-mo
Copy link
Owner

@ti-mo ti-mo commented Oct 15, 2025

Support for the CTA_ZONE attribute for dump and flush requests was added to the kernel in 6.8: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone"). This commit adds a Zone() method to allow filtering by zone ID.

On older kernels, the attribute will be ignored and flows from all zones will be returned.

Fixes: #23

Support for the CTA_ZONE attribute for dump and flush requests was added
to the kernel in 6.8: eff3c558bb7e ("netfilter: ctnetlink: support filtering
by zone"). This commit adds a Zone() method to allow filtering by zone ID.

On older kernels, the attribute will be ignored and flows from all zones will
be returned.

Fixes: #23

Signed-off-by: Timo Beckers <[email protected]>
Co-authored-by: Antonin Bas <[email protected]>
@ti-mo ti-mo added the hacktoberfest-accepted This contribution counts towards Hacktoberfest! label Oct 15, 2025
@coveralls
Copy link

coveralls commented Oct 15, 2025

Pull Request Test Coverage Report for Build 18525419484

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 91.633%

Totals Coverage Status
Change from base Build 18524558601: 0.02%
Covered Lines: 1347
Relevant Lines: 1470

💛 - Coveralls

@ti-mo ti-mo merged commit fcafe27 into master Oct 15, 2025
7 checks passed
@ti-mo ti-mo deleted the tb/filter-zone branch October 15, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted This contribution counts towards Hacktoberfest!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow zoneID to be netfilter attribute

3 participants