1. 27 Dec, 2014 5 commits
    • Vadim Kochan's avatar
      lib: Add netns_switch func for change network namespace · eb67e449
      Vadim Kochan authored
      New netns_switch func moved to the lib/namespace.c from ip/ipnetns.c
      so it can be used from the other tools for fast switching
      network namespace.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
      eb67e449
    • Vadim Kochan's avatar
      ss: Use rtnl_dump_filter for inet_show_netlink · 486ccd99
      Vadim Kochan authored
      Just another refactoring for ss to use rtnl API from lib
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      486ccd99
    • Vadim Kochan's avatar
      417b2180
    • Vadim Kochan's avatar
      tc class: Show classes as ASCII graph · d954b34a
      Vadim Kochan authored
      Added new '-g[raph]' option which shows classes in the graph view.
      
      Meanwhile only generic stats info output is supported.
      
      e.g.:
      
      $ tc/tc -g class show dev tap0
      +---(1:2) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
      |    +---(1:40) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
      |    +---(1:50) htb rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
      |    |    +---(1:51) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      |    |
      |    +---(1:60) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      |
      +---(1:1) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
           +---(1:10) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
           +---(1:20) htb prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
           +---(1:30) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      
      $ tc/tc -g -s class show dev tap0
      +---(1:2) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
      |    |    Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      |    |    rate 0bit 0pps backlog 0b 0p requeues 0
      |    |
      |    +---(1:40) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
      |    |          Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      |    |          rate 0bit 0pps backlog 0b 0p requeues 0
      |    |
      |    +---(1:50) htb rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
      |    |    |     Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      |    |    |     rate 0bit 0pps backlog 0b 0p requeues 0
      |    |    |
      |    |    +---(1:51) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      |    |               Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      |    |               rate 0bit 0pps backlog 0b 0p requeues 0
      |    |
      |    +---(1:60) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      |               Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
      |               rate 0bit 0pps backlog 0b 0p requeues 0
      |
      +---(1:1) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
           |    Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
           |    rate 0bit 0pps backlog 0b 0p requeues 0
           |
           +---(1:10) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
           |          Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
           |          rate 0bit 0pps backlog 0b 0p requeues 0
           |
           +---(1:20) htb prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
           |          Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
           |          rate 0bit 0pps backlog 0b 0p requeues 0
           |
           +---(1:30) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
                      Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
                      rate 0bit 0pps backlog 0b 0p requeues 0
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      d954b34a
    • Heiner Kallweit's avatar
      ip: extend "ip-address" man page to reflect the recent flag extensions · 18c8bbe3
      Heiner Kallweit authored
      Extend "ip-address" man page to reflect the recent extension of
      allowing to list addresses with flags tentative, deprecated, dadfailed
      not being set.
      Signed-off-by: default avatarHeiner Kallweit <heiner.kallweit@web.de>
      18c8bbe3
  2. 24 Dec, 2014 7 commits
  3. 20 Dec, 2014 7 commits
  4. 10 Dec, 2014 14 commits
  5. 05 Dec, 2014 2 commits
  6. 04 Dec, 2014 4 commits
  7. 03 Dec, 2014 1 commit
    • Mahesh Bandewar's avatar
      ip link: Add ipvlan support to the iproute2/ip util · 81eaf677
      Mahesh Bandewar authored
      Adding basic support to create virtual devices using 'ip'
      utility. Following is the syntax -
      
      	ip link add link <master> <virtual> type ipvlan mode [ l2 | l3 ]
      	e.g. ip link add link eth0 ipvl0 type ipvlan mode l3
      Signed-off-by: default avatarMahesh Bandewar <maheshb@google.com>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Maciej Żenczykowski <maze@google.com>
      Cc: Laurent Chavey <chavey@google.com>
      Cc: Tim Hockin <thockin@google.com>
      Cc: Brandon Philips <brandon.philips@coreos.com>
      Cc: Pavel Emelianov <xemul@parallels.com>
      81eaf677