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

Support IP-in-subnet queries in lookup tables #4051

Merged
merged 21 commits into from
May 30, 2024

Conversation

mavam
Copy link
Member

@mavam mavam commented Mar 19, 2024

This PR enhances lookup tables when their key type is a subnet value. In this case, it is now possible to probe the lookup table with a value of type ip and perform a prefix match on all contained subnets.

@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch from 2c60c5a to a8947e2 Compare March 20, 2024 07:54
@mavam mavam added improvement An incremental enhancement of an existing feature engine Core pipeline and storage engine labels Apr 21, 2024
@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch from ed03587 to 797376a Compare May 10, 2024 04:56
@dominiklohmann
Copy link
Member

@mavam Out of curiosity: Did you see https://github.com/zeek/pysubnettree before and consider using the patricia trie from it?

@mavam
Copy link
Member Author

mavam commented May 12, 2024

Yep, this is exactly the implementation I'm using now.

@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch 3 times, most recently from 2de4566 to b1c2b6c Compare May 26, 2024 18:08
@mavam mavam marked this pull request as ready for review May 26, 2024 18:16
Copy link
Member

@dominiklohmann dominiklohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch from 461d573 to cbc3cbe Compare May 29, 2024 15:51
@mavam mavam enabled auto-merge May 29, 2024 15:51
@mavam mavam disabled auto-merge May 29, 2024 15:52
@mavam mavam enabled auto-merge May 29, 2024 15:53
@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch from 097654a to f369aa5 Compare May 29, 2024 16:14
@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch from f369aa5 to cdf6b01 Compare May 29, 2024 18:47
@mavam mavam force-pushed the topic/lookup-table-subnet-keys branch from 66cb39b to f98dca4 Compare May 30, 2024 04:02
@mavam mavam disabled auto-merge May 30, 2024 06:58
@mavam mavam merged commit dba199e into main May 30, 2024
33 of 35 checks passed
@mavam mavam deleted the topic/lookup-table-subnet-keys branch May 30, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Core pipeline and storage engine improvement An incremental enhancement of an existing feature
Projects
None yet
2 participants