1. 26 Jun, 2018 2 commits
  2. 13 Feb, 2016 1 commit
  3. 24 Nov, 2015 1 commit
    • Mike Frysinger's avatar
      use sockaddr_storage everywhere · 5c9e1e76
      Mike Frysinger authored
      Not all sockaddr structs have the same alignment.  Instead, it depends
      on the fields contained in it.  The way net-tools has written things
      though, it accepts sockaddr* everywhere which has 16bit alignment, even
      though it will cast it to other sockaddr types that have higher alignment.
      For example, `route` can crash on alpha because it declares sockaddr on
      the stack, but then casts it up to sockaddr_in6 (which has 32bits).
      
      It's also bad storage wise as we might try to cast the sockaddr to a type
      that is larger than sockaddr which means clobbering the stack.
      
      Instead, lets rewrite all the APIs to take a sockaddr_storage.  This is
      guaranteed to have both the maximum alignment and size requirements for
      all other sockaddr types.  Now we can safely cast that pointer to any
      other sockaddr type and not worry about it.  It also has the nice effect
      of deleting a lot of casts in a lot of places when we only need the type
      of family.
      
      The vast majority of changes here are mechanical.  There are a few places
      where we have to memcpy between a dedicated sockaddr_storage and a smaller
      struct because we're using an external embedded type (like arpreq).
      
      URL: https://bugs.gentoo.org/558436
      5c9e1e76
  4. 05 Sep, 2015 1 commit
  5. 25 Aug, 2015 2 commits
  6. 13 May, 2013 3 commits
  7. 11 Jan, 2013 2 commits
  8. 26 Jun, 2012 1 commit
    • Jiri Popelka's avatar
      Consistently use defined exit codes. · 699e5db8
      Jiri Popelka authored
      Tools have been inconsistently using exit codes when started with
      --help/--version.
      With this patch all tools use exit codes E_USAGE/E_VERSION defined
      in net-support.h.
      
      There's probably no rule what exit codes should programs use when
      started with --help/--version, but when I'm checking programs on
      my system most of them use 0 (SUCCESS) exit code.
      Therefore I redefined E_USAGE/E_VERSION to EXIT_SUCCESS (0).
      699e5db8
  9. 24 Jan, 2012 1 commit
  10. 05 Jan, 2012 2 commits
  11. 21 Nov, 2011 1 commit
  12. 01 Jan, 2011 1 commit
  13. 02 Oct, 2008 1 commit
  14. 10 Dec, 2002 1 commit
  15. 05 Jul, 2002 1 commit
  16. 03 Jul, 2002 1 commit
  17. 01 Nov, 2001 3 commits
  18. 29 Jun, 2001 1 commit
  19. 13 Apr, 2001 3 commits
  20. 08 Apr, 2001 1 commit
  21. 01 Apr, 2001 1 commit
  22. 19 Feb, 2001 1 commit
  23. 12 Feb, 2001 1 commit
  24. 26 Oct, 2000 1 commit
  25. 08 Oct, 2000 1 commit
  26. 14 Aug, 2000 1 commit
    • Andi Kleen's avatar
      · da306a2c
      Andi Kleen authored
      Speed up list operations by exploiting that the interface list is ordered,
      and the kernel list is normally ordered to.
      
      This allows to list 7000 aliases in a reasonable time.
      Also be a bit smarter on when to read SIOCGIFCONF.
      
      The stupid IPv6 /proc parsing on every address still burns a lot of CPU
      time.
      da306a2c
  27. 31 Jul, 2000 1 commit
  28. 11 Jun, 2000 1 commit
  29. 27 May, 2000 1 commit
  30. 21 May, 2000 1 commit