- 07 Nov, 2014 7 commits
-
-
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: Tom Herbert <therbert@google.com>
-
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: Tom Herbert <therbert@google.com>
-
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: Tom Herbert <therbert@google.com>
-
Masatake YAMATO authored
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
-
Christian Hesse authored
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Christian Hesse authored
Width is the maximum number of characters used for the value, excluding a field separator. So append a single whitespace.
-
- 02 Nov, 2014 3 commits
-
-
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.
-
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
-
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: Alexey Andriyanov <alan@al-an.info>
-
- 30 Oct, 2014 12 commits
-
-
Nicolas Dichtel authored
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Stephen Hemminger authored
Conflicts: include/linux/if_tunnel.h
-
dingzhi authored
This patch allows to configure ESN and anti-replay window. Signed-off-by: dingzhi <zhi.ding@6wind.com> Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Eric Dumazet authored
Starting from linux-3.15 (commit 9063e21fb026, "netlink: autosize skb lengths"), kernel is able to send up to 16K in netlink replies. This change enables iproute2 commands to get bigger chunks, without breaking compatibility with old kernels. Signed-off-by: Eric Dumazet <edumazet@google.com>
-
Daniel Borkmann authored
Dump useful DCTCP state/debug information gathered from diag. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>
-
Stephen Hemminger authored
-
vadimk authored
Such approach allows to run *.t scripts from any tests/ subdirectories. One point is that tests from tests/cls/*.t (which are needed by tests/cls-testbed.t but does not exist yet) will also be ran aside with tests/cls-testbed.t which is not good because in such case they will be ran twice, so renamed these tests path to tests/cls/*.c in tests/cls-testbed.t Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
Curently tests/cls-testbed.t tries to run any *.t in tests/cls/ folder but such folder does not exist. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
The list is based on doc/Makefile 'clean' target Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
- 09 Oct, 2014 15 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
emp_ematch.y:12.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated] %name-prefix="ematch_" ^^^^^^^^^^^^^
-
vadimk authored
Allow to print particular link type usage by: ip link help [TYPE] Currently to print usage for some link type it is needed to use the following way: ip link { add | del | set } type TYPE help Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Jamal Hadi Salim authored
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
Jamal Hadi Salim authored
route can now use the action syntax Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
Jamal Hadi Salim authored
tcindex can now use the action syntax Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
Dmitry Popov authored
'ip -oneline tunnel show' was not "oneline" for GRE tunnels with iseq: # ip tun add gre_test remote 1.1.1.1 local 2.2.2.2 mode gre iseq oseq # ip -oneline tun show gre_test | wc -l 2 The problem existed because of a typo: '\n' was printed when it shouldn't be. Fixed. Signed-off-by: Dmitry Popov <ixaphire@qrator.net>
-
Jiri Benc authored
Make ip address show accept the -s option similarly to ip link. This creates an one command replacement for "ifconfig -a" useful for people who still stay with ifconfig because of this feature. Print the stats as the last thing for the interface. This requires some code shuffling. Signed-off-by: Jiri Benc <jbenc@redhat.com>
-
Eric Dumazet authored
Display 4 additional tcp socket info fields : backoff : exponential backoff lastsnd : time in milli second since last send lastrcv : time in milli second since last receive lastack : time in milli second since last acknowledgement $ ss -ti dst :22 State Recv-Q Send-Q Local Address:Port Peer Address:Port ESTAB 0 0 172.16.5.1:58470 172.17.131.143:ssh cubic wscale:7,7 rto:228 rtt:30/20 ato:40 mss:1256 cwnd:6 ssthresh:4 send 2.0Mbps lastsnd:3480 lastrcv:3464 lastack:3464 rcv_rtt:81.5 rcv_space:87812 Signed-off-by: Eric Dumazet <edumazet@google.com>
-
Atzm Watanabe authored
Since commit 3c682146, iplink requires assigning negative ifindex (-1) to the kernel when creating interface without specifying index. v2: checking whether index is -1, suggested by Cong Wang. Cc: Cong Wang <cwang@twopensource.com> Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp> Acked-by: Cong Wang <cwang@twopensource.com>
-
vadimk authored
Renamed testsuite/tests/policer to testsuite/tests/policer.t Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
When make tests then 2 folders are generated: testsuite/results testsuite/iproute2/iproute2-this Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
In case if unknown message was handled then it will be displayed as: Unknown message: type=0x00000044(68) flags=0x00000000(0) len=0x0000004c(76) Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Andy Furniss authored
The man page and the "fail" example are missing an underscore in the nf_mark ematch. eg. tc filter add dev eth0 parent ffff: basic match 'meta(nfmark gt 24)' classid 2:4 meta: unknown meta id ... >>meta(nfmark gt 24)<< ... ... meta(>>nfmark<< gt 24)... Usage: meta(OBJECT { eq | lt | gt } OBJECT) where: OBJECT := { META_ID | VALUE } META_ID := id [ shift SHIFT ] [ mask MASK ] Example: meta(nfmark gt 24) meta(indev shift 1 eq "ppp") meta(tcindex mask 0xf0 eq 0xf0) For a list of meta identifiers, use meta(list). Illegal "ematch" meta(list) does correctly show nf_mark and the above test works with nf_mark. Signed-off-by: Andy Furniss adf.lists@gmail.com
-
- 29 Sep, 2014 3 commits
-
-
vadimk authored
netns monitor fails when there is no /var/run/netns dir which might be created later while monitoring. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
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: Vadim Kochan <vadim4j@gmail.com>
-
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: Jamal Hadi Salim <jhs@mojatatu.com> Tested-by: John Fastabend <john.r.fastabend@intel.com>
-