Skip to content
Snippets Groups Projects
  1. Apr 22, 2013
  2. Apr 19, 2013
  3. Apr 12, 2013
  4. Apr 08, 2013
  5. Apr 05, 2013
  6. Apr 04, 2013
  7. Apr 03, 2013
  8. Mar 31, 2013
    • Dominik Honnef's avatar
      Make IP allocator lazy · 6f9a67a7
      Dominik Honnef authored
      Instead of allocating all possible IPs in advance, generate them as
      needed.
      
      A loop will cycle through all possible IPs in sequential order,
      allocating them as needed and marking them as in use. Once the loop
      exhausts all IPs, it will wrap back to the beginning. IPs that are
      already in use will be skipped. When an IP is released, it will be
      cleared and be available for allocation again.
      
      Two decisions went into this design:
      
      1) Minimize memory footprint by only allocating IPs that are actually
      in use
      
      2) Minimize reuse of released IP addresses to avoid sending traffic to
      the wrong containers
      
      As a side effect, the functions for IP/Mask<->int conversion have been
      rewritten to never be able to fail in order to reduce the amount of
      error returns.
      
      Fixes gh-231
      6f9a67a7
  9. Mar 28, 2013
  10. Mar 22, 2013
  11. Mar 21, 2013
  12. Mar 20, 2013
  13. Feb 28, 2013
  14. Feb 25, 2013
  15. Feb 21, 2013
Loading