1. 10 Apr, 2015 8 commits
  2. 07 Apr, 2015 6 commits
  3. 24 Mar, 2015 23 commits
  4. 15 Mar, 2015 3 commits
    • Vadim Kochan's avatar
      tc class: Show class names from file · 4612d04d
      Vadim Kochan authored
      It is possible to use class names from file /etc/iproute2/cls_names
      which tc will use when showing class info:
      
          # tc/tc -nm class show dev lo
      	class htb 1:10 parent 1:1 leaf 10: prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
      	class htb 1:1 root rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
      	class htb web#1:20 parent 1:1 leaf 20: prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
      	class htb 1:2 root rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
      	class htb 1:30 parent 1:1 leaf 30: prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      	class htb voip#1:40 parent 1:2 leaf 40: prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
      	class htb 1:50 parent 1:2 leaf 50: prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
      	class htb 1:60 parent 1:2 leaf 60: prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
      
      or to specify via file path:
      
          # tc/tc -nm -cf /tmp/cls_names class show dev lo
      
      Class names file contains simple "maj:min  name" structure:
      
      1:20    web
      1:40    voip
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      4612d04d
    • Vadim Kochan's avatar
      ip netns: Fix rtnl error while print netns list · d116ff34
      Vadim Kochan authored
      Observed on the Linux 3.18:
      
          # ip netns
          RTNETLINK answers: Operation not supported
          net0
      
      CC: Nicolas Dichtel <nicolas.dichtel@6wind.com>
      Fixes: d182ee13 ("ipnetns: allow to get and set netns ids")
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      d116ff34
    • Vadim Kochan's avatar
      lib utils: Use helpers to get AF bit/byte len · f3a2ddc1
      Vadim Kochan authored
      Added funcs to get AF_XXX len in bit/bytes and replace
      places where switch(AF_XXX) is used for this.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      f3a2ddc1