1. 10 Dec, 2014 5 commits
    • vadimk's avatar
      ss: Fix layout/output issues introduced by regression · d68e00f7
      vadimk authored
      This patch fixes the following issues which was introduced by me in commits:
      
          #1 (2dc85485) ss: Fixed broken output for Netlink 'Peer Address:Port' column
          ISSUE: Broken layout when all sockets are printed out
      
          #2 (eef43b50) ss: Identify more netlink protocol names
          ISSUE: Protocol id is not printed if 'numbers only' output was specified (-n)
      
      Also aligned the width of the local/peer ports to be more wider.
      
      I tested with a lot of option combinations (I may miss some test cases),
      but layout seems to me better than the previous released version of iproute2/ss.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      d68e00f7
    • Stephen Hemminger's avatar
      if_bridge: remove in6.h · 9d2c1643
      Stephen Hemminger authored
      Adding in6.h breaks build with redefined values.
      9d2c1643
    • vadimk's avatar
      ip monitor: Fix issue when timestamp is printed w/o msg · 6fcabac5
      vadimk authored
      The issue was observed when IPv6 router broadcasted NDUSEROPT
      messages which are not handled by monitor and caused printing
      'Timestamps' w/o message because such kind of rtnl messages is not
      handled by monitor.
      
      As 'ip monitor' by default subscribes to the all mcast rtnl groups except
      RTGRP_TC then all messages of these rtnl groups which are not handled by
      monitor may cause such issues.
      
      Fixed by subscribing by default to rtnl mcast groups which are
      supported by 'ip monitor'.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      6fcabac5
    • Nicolas Dichtel's avatar
      ipaddress: enable -details option · 2ec28933
      Nicolas Dichtel authored
      This option was used only for 'ip link', but it can be useful to have it for
      'ip address'. Thus it is possible to display link details and addresses with one
      command.
      
      Example:
      $ ip -d a ls dev gre1
      9: gre1@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1468 qdisc noqueue state UNKNOWN group default
          link/gre 10.16.0.249 peer 10.16.0.121 promiscuity 0
          gre remote 10.16.0.121 local 10.16.0.249 ttl inherit ikey 0.0.0.10 okey 0.0.0.10 icsum ocsum
          inet 192.168.0.249 peer 192.168.0.121/32 scope global gre1
             valid_lft forever preferred_lft forever
          inet6 fe80::5efe:a10:f9/64 scope link
             valid_lft forever preferred_lft forever
      Suggested-by: default avatarChristophe Gouault <christophe.gouault@6wind.com>
      Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      2ec28933
    • Scott Feldman's avatar
      bridge/fdb: fix statistics output spacing · 85c1807f
      Scott Feldman authored
      Signed-off-by: default avatarScott Feldman <sfeldma@gmail.com>
      Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
      85c1807f
  2. 05 Dec, 2014 2 commits
  3. 04 Dec, 2014 4 commits
  4. 03 Dec, 2014 2 commits
  5. 30 Nov, 2014 4 commits
  6. 29 Nov, 2014 11 commits
  7. 22 Nov, 2014 1 commit
  8. 07 Nov, 2014 8 commits
    • Tom Herbert's avatar
      iproute2: Man pages for fou and gue · e4fc7e26
      Tom Herbert authored
      Man pages for Foo-over-UDP and Generic UDP Encapsulation receive
      port configuration. gue man page links to fou one.
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      e4fc7e26
    • Tom Herbert's avatar
      ip link gre: Add support to configure FOU and GUE · 80c24b09
      Tom Herbert authored
      This patch adds support to configure foo-over-udp (FOU) and Generic
      UDP Encapsulation for GRE tunnels. This configuration allows selection
      of FOU or GUE for the tunnel, specification of the source and
      destination ports for UDP tunnel, and enabling TX checksum. This
      configuration only affects the transmit side of a tunnel.
      
      Example:
      
      ip link add name tun1 type gre remote 192.168.1.1 local 192.168.1.2 \
         ttl 225 encap fou encap-sport auto encap-dport 7777 encap-csum
      
      This would create an GRE tunnel in GUE encapsulation where the source
      port is automatically selected (based on hash of inner packet) and
      checksums in the encapsulating UDP header are enabled.
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      80c24b09
    • Tom Herbert's avatar
      ip link ipip: Add support to configure FOU and GUE · c1159152
      Tom Herbert authored
      This patch adds support to configure foo-over-udp (FOU) and Generic
      UDP Encapsulation for IPIP and sit tunnels. This configuration allows
      selection of FOU or GUE for the tunnel, specification of the source and
      destination ports for UDP tunnel, and enabling TX checksum. This
      configuration only affects the transmit side of a tunnel.
      
      Example:
      
      ip link add name tun1 type ipip remote 192.168.1.1 local 192.168.1.2 \
         ttl 225 encap gue encap-sport auto encap-dport 9999 encap-csum
      
      This would create an IPIP tunnel in GUE encapsulation where the source
      port is automatically selected (based on hash of inner packet) and
      checksums in the encapsulating UDP header are enabled.
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      c1159152
    • Tom Herbert's avatar
      ip fou: Support to configure foo-over-udp RX · 6928747b
      Tom Herbert authored
      Added 'ip fou...' commands to enable/disable UDP ports for doing
      foo-over-udp and Generic UDP Encapsulation variant. Arguments are port
      number to bind to and IP protocol to map to port (for direct FOU).
      
      Examples:
      
      ip fou add port 7777 gue
      ip fou add port 8888 ipproto 4
      
      The first command creates a GUE port, the second creates a direct FOU
      port for IPIP (receive payload is a assumed to be an IPv4 packet).
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      6928747b
    • Masatake YAMATO's avatar
      man: ip-link: fix a typo · e37a9c73
      Masatake YAMATO authored
      Signed-off-by: default avatarMasatake YAMATO <yamato@redhat.com>
      e37a9c73
    • Christian Hesse's avatar
    • vadimk's avatar
      doc ip-cref: Added missing ip options · 5cb6aa03
      vadimk authored
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      5cb6aa03
    • Christian Hesse's avatar
      ip-link: fix column alignment · f4fe81d2
      Christian Hesse authored
      Width is the maximum number of characters used for the value, excluding a
      field separator. So append a single whitespace.
      f4fe81d2
  9. 02 Nov, 2014 3 commits
    • Stephen Hemminger's avatar
      ip: add iec formatted option and cleanup code · 1e264abc
      Stephen Hemminger authored
      Add a new -iec option in addition to -human.
      Cleanup code so the formatting of numbers is done in one function,
      not 2 ways and 2 sizes.
      1e264abc
    • Christian Hesse's avatar
      ip-link: add switch to show human readable output · b68d9837
      Christian Hesse authored
      Byte and packet count can increase to really big numbers. This adds a
      switch to show human readable output.
      
      4: wl: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
          link/ether 00:de:ad:be:ee:ef brd ff:ff:ff:ff:ff:ff
          RX: bytes  packets  errors  dropped overrun mcast
          1523846973 3969051  0       0       0       0
          TX: bytes  packets  errors  dropped carrier collsns
          8710088361 6077735  0       0       0       0
      4: wl: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
          link/ether 00:de:ad:be:ee:ef brd ff:ff:ff:ff:ff:ff
          RX: bytes  packets  errors  dropped overrun mcast
          1.5G       3.9M     0       0       0       0
          TX: bytes  packets  errors  dropped carrier collsns
          8.7G       6.0M     0       0       0       0
      b68d9837
    • Alexey Andriyanov's avatar
      iproute2: ip6_tunnel mode bugfixes: any,vti6 · a0638e18
      Alexey Andriyanov authored
      - any ipv6 tunnel mode (proto == 0) could not be set
      due to incomplete set of cases in do_add, do_del.
      - vti6 logic was inverted: it was using "ip6_vti0" basedev
      UNLESS mode is set to vti6.
      
      We don't need a switch by p.proto in do_add()/do_del(): it
      already exists in parse_args(). So if parse_args() call
      was successful, no need to check tunnel mode again.
      Signed-off-by: default avatarAlexey Andriyanov <alan@al-an.info>
      a0638e18