Giter Site home page Giter Site logo

ipx's People

Contributors

cbertinato avatar elindsey avatar hmodi-ns1 avatar jwilner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

ipx's Issues

Comparator logic

Right now, we don't have any logic for comparing IPs and nets.

You might imagine a CmpIP(a, b net.IP) int, CmpNet(a, b net.IPNet) int sort of signature.

ipaddress would blow up if you compared v4 and v6; we could panic, too, maybe?

uint128 hardening

The uint128 type is at the heart of all our ipv6 work but has no direct units or benchmarking.

We should verify its correctness with tests and benchmarks -- and then maybe make it faster.

Reverse DNS pointer

It'd probably be helpful to export a reverse dns pointer helper as ipaddress does. This is straightforward for ipv4 but slightly more complicated for ipv6.

Sort logic

It'd probably be useful to have SortIPs(ips []net.IP) and SortNets(nets []*net.IPNet).

Questions include how to handle v4 vs v6 illegal args and what does an absolute ordering for networks look like?

IP increment overflows

Right now, the IP increment logic will probably just wrap around on overflow. Is that desired? We should decide and document / add tests that demo it.

IP iteration overflows

We need tests verifying that the v4/v6 logic behaves appropriately when hitting mins or maxes for their types. That probably looks like a) deciding what is appropriate, b) writing tests and c) making those tests pass.

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.