Giter VIP home page Giter VIP logo

cidr-ip-trie's People

Contributors

veqryn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cidr-ip-trie's Issues

OSGi compliant

Hi,
Thanks for your project. We have built a wrapper of the library to be OSGi compliant. Do you want a PR in your project with this build?
Regards.

The support for default route

Hi,I have two questions:

  • The default route seems can be the root node, why filter it out ?
  • What's the purpose of not setting the privateKey when the node it is put into the trie firstly ?

Where is isInRange() method on Cidr4Trie?

I like the idea of keeping multiple CIDRs in a data structure optimized to search it, but what I really need is a fast way to check an IP address against a set of CIDRs. I thought that was the whole point of using a Trie to store CIDRs so you could easily just walk the prefix tree to find the CIDR that an IP address might be within.

However, I don't see any methods like isInRange() on Trie to support that. So does that need to be written or is there another way to check IP membership that I don't see?

IPv6 support

Hey, I saw that IPv6 support was on your roadmap. I'm attempting to use your library to increase the speed of logstash-filter-cidr, which is currently VERY slow, but does support IPv6. What would it take to add support not just for IPv6, but also generic v4/v6 ip type and trie?

The use case is that the user may provide a list containing both IPv4 and v6 CIDRs to match, and events to be matched may contain addresses of either type as well. We would need to be able to build a trie containing both types, and make queries using address of either type.

Support for IPv4-mapped IPv6 addresses would also be nice (::ffff:192.168.0.0/120 matches 192.168.0.1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.