1. 27 Mar, 2013 3 commits
    • James Chapman's avatar
      iproute2: add l2spec_type param to l2tp add session · dd10baa5
      James Chapman authored
      When unmanaged L2TP sessions are created using "ip l2tp add session",
      there is no option to allow the session's Layer2SpecificHeader type to
      be selected - the kernel's default setting is always used. For
      interopability with some vendor equipment, it might be necessary to
      use a different setting. So add a new l2spec_type parameter to the "ip
      l2tp add session" parameter list, allowing operators to set a specific
      Layer2SpecificHeader type. The kernel already exposes the setting as a
      netlink attribute so it is straightforward to add support for it in
      iproute2.
      
      This change allows unmanaged L2TP sessions to be configured between
      Linux and some Cisco equipment by specifying "l2spec_type none" in "ip
      l2tp add session" command parameters.
      Signed-off-by: default avatarJames Chapman <jchapman@katalix.com>
      dd10baa5
    • Stephen Hemminger's avatar
      ll_map: use net/if.h to get prototype · 5f218239
      Stephen Hemminger authored
      Better to get prototype from system headers
      5f218239
    • Stephen Hemminger's avatar
      ll_map: remove unused address fields · 3e26112a
      Stephen Hemminger authored
      The address was being stored but not used by current code.
      3e26112a
  2. 22 Mar, 2013 1 commit
  3. 20 Mar, 2013 1 commit
  4. 18 Mar, 2013 1 commit
  5. 16 Mar, 2013 4 commits
  6. 14 Mar, 2013 3 commits
  7. 13 Mar, 2013 1 commit
  8. 12 Mar, 2013 1 commit
  9. 11 Mar, 2013 1 commit
  10. 06 Mar, 2013 8 commits
  11. 04 Mar, 2013 1 commit
  12. 28 Feb, 2013 2 commits
  13. 27 Feb, 2013 5 commits
  14. 21 Feb, 2013 2 commits
    • Stephen Hemminger's avatar
      v3.8.0 · 05e983ea
      Stephen Hemminger authored
      05e983ea
    • Kees van Reeuwijk's avatar
      iproute2: clearer error messages for fifo and tbf qdiscs · 3bed7bb7
      Kees van Reeuwijk authored
      Clearer error messages for fifo and tbf qdiscs:
      - Say who is complaining
      - Don't just say a parameter is bad, show the offending parameter
      - Be clearer about duplicate parameters vs illegal pairs of parameters
      - Try to give multiple error messages rather than let the user discover the errors one by one
      - When there are parameter aliases, try to use the variant that was used, or at least mention them all
      
      Note that in the old version an empty parameter list to tbf would just cause an explain() message
      without a specific error message. By simply removing the relevant error check, the code now
      handles this error more gracefully by printing an error message for all mandatory parameters.
      It still prints the explain() message.
      Signed-off-by: default avatarKees van Reeuwijk <reeuwijk@few.vu.nl>
      3bed7bb7
  15. 19 Feb, 2013 2 commits
  16. 12 Feb, 2013 4 commits
    • Stephen Hemminger's avatar
      ip: handle flush with table > 2^31 · caae16b3
      Stephen Hemminger authored
      Fixes Debian bug #700434
      Need to table id in filter to be unsigned to avoid conversion to -1
      
      The documentation for "ip" suggests that, when using multiple routing tables, the table ID can be an arbitrary 32 bit number. I've been writing a script that calculates a table Id based on an IP addresses and sets up tables accordingly based on it. This seems to work for everything I've tried except "ip route flush". If you specify a table to flush with an ID over 2^31, it flushes all IPv4 routing tables. For example:
      
      Will delete all routing tables, including the default one. Needless to say, this is quite annoying. I think this is an upstream bug, but your opinions will be greatly appreciated.
      caae16b3
    • Stephen Hemminger's avatar
      Makefile: turn on warnings about missing prototypes · 6398d3a6
      Stephen Hemminger authored
      Catches missing, dead code and also places where function should be static.
      6398d3a6
    • Stephen Hemminger's avatar
      lib: make string arguments const · 46ac8a55
      Stephen Hemminger authored
      For lookup routines, make arguments const where possible.
      46ac8a55
    • Stephen Hemminger's avatar
      ip: make local functions static · d1f28cf1
      Stephen Hemminger authored
      d1f28cf1