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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

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.

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