- 09 Oct, 2014 14 commits
-
-
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 4 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>
-
Jamal Hadi Salim authored
Was broken by commit 288abf51 Lets not be too clever and have a separate call to print flushed actions info. Broken looks like: root@moja-1:~# tc actions add action drop index 4 root@moja-1:~# tc -s actions ls action gact action order 0: gact action drop random type none pass val 0 index 4 ref 1 bind 0 installed 9 sec used 4 sec The fixed version looks like: action order 0: gact action drop random type none pass val 0 index 4 ref 1 bind 0 installed 9 sec used 4 sec Sent 108948 bytes 1297 pkts (dropped 1297, overlimits 0) Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
- 28 Sep, 2014 12 commits
-
-
Steffen Klassert authored
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-
Steffen Klassert authored
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-
vadimk authored
show, list, lst and help commands were not printed in usage. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
This checking was performed only when adding interface but it is needed also when deleting, otherwise the error will be: ioctl(TUNSETIFF): Invalid argument Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Nicolas Dichtel authored
Parenthesis are required else maxaddr value is a bool and thus output is always 1 when the option is set. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Nicolas Dichtel authored
These options were missing in usage and man pages. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Jiri Pirko authored
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Nikolay Aleksandrov authored
This patch adds the necessary changes to allow altering a slave device's options via ip link set <device> type <master type>_slave specific-option. It also adds support to set the bonding slaves' queue_id. Example: ip link set eth0 type bond_slave queue_id 10 Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Acked-by: Jiri Pirko <jiri@resnulli.us>
-
WANG Cong authored
Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
-
Eric Dumazet authored
Starting from linux-3.15, kernel supports new tcp metric attributes : TCP_METRIC_RTT_US & TCP_METRIC_RTTVAR_US Update ip command to detect their use. Signed-off-by: Eric Dumazet <edumazet@google.com>
-
vadimk authored
IPv6 router sends ND messages with RDNSS option which causes the printing of unknown message by 'ip monitor': Unknown message: 0000004c 00000044 00000000 Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
This is ugly fix but solves the case when timestamp or banner-label is printed before the cloned route will be skipped by iproute filter which filters out all cached routes by default. In such case timestamp will be printed twice: Timestamp: Thu Sep 4 19:46:59 2014 457933 usec Timestamp: Thu Sep 4 19:47:07 2014 977970 usec 10.3.5.1 dev wlp3s0 lladdr XX:XX:XX:XX:XX:XX STALE Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
- 15 Sep, 2014 1 commit
-
-
Stephen Hemminger authored
Update the rt_dsfield file to contain values defined in current RFC. The days of TOS precedence are gone, even Cisco doesn't refer to these in the documents.
-
- 04 Sep, 2014 2 commits
-
-
vadimk authored
The real checking is performed later in iplink_modify(..) func which checks device existence if NLM_F_CREATE flag is set. Also it fixes the case when impossible to add veth link which was caused by 9a02651a (ip: check for missing dev arg when doing VF rate) because these devices are not exist yet. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-
vadimk authored
For hsr link there was no short description in ip-link man page. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-
- 29 Aug, 2014 3 commits
-
-
vadimk authored
Currently if mkdir failed with "Permission denied" error then "mount --make-shared ..." error message will be showed because /var/run/netns does not exist. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-
Eric Dumazet authored
SNMP counters can be provided as 64bit numbers. nstat needs to cope with this even if running in 32bit mode. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-
Daniel Borkmann authored
This adds ARPHRD_NETLINK to ll_types so that it can be properly shown e.g. in `ip a`: 8: nlmon: <NOARP,UP,LOWER_UP> mtu 3776 qdisc noqueue state UNKNOWN group default link/netlink Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-
- 04 Aug, 2014 4 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Jiri Pirko authored
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Stephen Hemminger authored
-