1. 19 Feb, 2013 2 commits
  2. 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
  3. 11 Feb, 2013 6 commits
  4. 05 Feb, 2013 2 commits
    • Stephen Hemminger's avatar
      ip: change format of promiscuity display · 1cb6a110
      Stephen Hemminger authored
      Don't put it on separate line, keep it on line with link address.
      1cb6a110
    • Nicolas Dichtel's avatar
      iplink: display the value of IFLA_PROMISCUITY · ede6a3ea
      Nicolas Dichtel authored
      This is useful to know the 'real' status of an interface (the flag IFF_PROMISC
      is exported by the kernel only when the user set it explicitly, for example it
      will not be exported when a tcpdump is running).
      
      This information will be displayed when '-details' is provided by the user.
      
      Example:
      $ ip -d l l tun10
      6: tun10: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN mode DEFAULT
          link/sit 10.16.0.249 peer 10.16.0.121
          sit remote 10.16.0.121 local 10.16.0.249 ttl inherit pmtudisc 6rd-prefix 2002::/16
          promiscuity 2
      Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      ede6a3ea
  5. 04 Feb, 2013 11 commits
  6. 18 Jan, 2013 2 commits
  7. 16 Jan, 2013 1 commit
  8. 15 Jan, 2013 2 commits
  9. 23 Dec, 2012 1 commit
  10. 20 Dec, 2012 5 commits
  11. 18 Dec, 2012 2 commits
  12. 17 Dec, 2012 2 commits