1. 07 Nov, 2014 7 commits
    • 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
  2. 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
  3. 30 Oct, 2014 12 commits
  4. 09 Oct, 2014 15 commits
  5. 29 Sep, 2014 3 commits
    • vadimk's avatar
      ip netns: Create /var/run/netns dir when do 'ip netns monitor' · c1cbb18a
      vadimk authored
      netns monitor fails when there is no /var/run/netns dir
      which might be created later while monitoring.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      c1cbb18a
    • vadimk's avatar
      tests: Fix problem with test running · 9ecff68d
      vadimk authored
      Tests were not allowed to be ran, the following
      issues were fixed:
          - creating the results folder before test running
          - sudo $PREFIX moved before variables definition which
              allow to pass them through the sudo to test script.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      9ecff68d
    • Jamal Hadi Salim's avatar
      rsvp classifier support for multiple actions · 10f5a375
      Jamal Hadi Salim authored
      Example setup:
      
      sudo tc qdisc del dev eth0 root handle 1:0 prio
      sudo tc qdisc add dev eth0 root handle 1:0 prio
      
      sudo tc filter add dev eth0 pref 10 proto ip parent 1:0 \
      rsvp session 10.0.0.1 ipproto icmp \
      classid 1:1  \
      action police rate 1kbit burst 90k pipe \
      action ok
      
      tc -s filter show dev eth0 parent 1:0
      
      filter protocol ip pref 10 rsvp
      filter protocol ip pref 10 rsvp fh 0x0001100a flowid 1:1 session
      10.0.0.1 ipproto icmp
              action order 1:  police 0x5 rate 1Kbit burst 23440b mtu 2Kb
      action pipe overhead 0b
      ref 1 bind 1
              Action statistics:
              Sent 98000 bytes 1000 pkt (dropped 0, overlimits 761 requeues 0)
              backlog 0b 0p requeues 0
      
              action order 2: gact action pass
               random type none pass val 0
               index 2 ref 1 bind 1 installed 60 sec used 3 sec
              Action statistics:
              Sent 74578 bytes 761 pkt (dropped 0, overlimits 0 requeues 0)
              backlog 0b 0p requeues 0
      Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
      Tested-by: default avatarJohn Fastabend <john.r.fastabend@intel.com>
      10f5a375