- 26 Jul, 2013 3 commits
-
-
Nicolas Dichtel authored
It's now possible to have IPv4 and IPv6 over IPv4 tunnels with the module sit. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Nicolas Dichtel authored
Because only IPv4 was supported, the size was static. Now, IPv6 also supports peer address. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Atzm Watanabe authored
This patch allows setting VXLAN destination to unicast address. It allows that VXLAN can be used as peer-to-peer tunnel without multicast. v6: change back to the v3 except for using new attribute because replacing command-line parameters breaks existing scripts, based by Cong Wang's comments. v5: rebase on the latest. v4: replace "group" with "remote" based by David Stevens's comments. v3: move a new attribute REMOTE into the last of an enum list based by Stephen Hemminger's comments. fix the usage to show explicitly that both "remote" and "group" cannot be specified, based by Ben Hutchings's comments. v2: use a new argument "remote" instead of "group" based by Stephen Hemminger's comments. Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp>
-
- 16 Jul, 2013 4 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Sanitized headers from upstream
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Change the code for tc and ip so that batch mode is handled the same.
-
- 13 Jul, 2013 1 commit
-
-
Stephen Hemminger authored
-
- 12 Jul, 2013 3 commits
-
-
Stephen Hemminger authored
The netns code was using EXIT_SUCCESS/EXIT_FAILURE but the rest of the ip code used -1 explictly, so change to follow convention. Also, certain types of errors like fork failure should abort a batch operation, rather than just returning an error.
-
esr@thyrsus.com authored
-
esr@thyrsus.com authored
These do nothing on an 80-column display. They were clearly somebody's boilerplate way of setting up hanging indents, but the syntax lines are way too short to require them. And since most were argumentless they would have been no-ops on any sized display.
-
- 09 Jul, 2013 5 commits
-
-
Thomas Richter authored
The ip link command line help and the ip-link.8.in man page are outdated in regards to the vxlan support. The patch updates both the command line help for the ip command and its man page. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
-
Thomas Richter authored
The bridge fdb command line help and the bridge.8 man page are outdated in regards to the vxlan support. The patch updates both the command line help for the bridge command and its man page. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
-
JunweiZhang authored
execvp() does not return when the command succeed, hence all commands in the batch file after the line 'ip netns exec' are not executed. Let's fork before calling execvp() if batch mode is used.. Example: $ cat test.batch netns add netns1 netns exec netns1 ip l netns $ ip -b test.batch 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT link/sit 0.0.0.0 brd 0.0.0.0 All command after 'netns exec' are never executed. With the patch: $ ip -b test.batch 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT link/sit 0.0.0.0 brd 0.0.0.0 netns1 Now, existing netns are displayed. Signed-off-by: JunweiZhang <junwei.zhang@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Amerigo Wang authored
Without patch, I got: # ./ip/ip tunnel show ip_vti0: ioctl 89f4 failed: Invalid argument ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0 this is due to VTI_ISVTI has the same numeric value with SIT_ISATAP, but only sit tunnel has SIOCGETPRL, therefore it should check for SIT tunnel first. Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Cong Wang <amwang@redhat.com>
-
esr@thyrsus.com authored
The command synopsis is regularized and part of it split off into an OPTIONS section. This allows the page to lift to XML-DocBook. An invalid \p escape was removed. This page was written by someone who didn't understand the use of definite and indefinite articles in English, nor its punctuation rules. I've fixed these mistakes, and some glitches in punctuation and capitalization.
-
- 25 Jun, 2013 3 commits
-
-
Adam Borowski authored
This includes x32, and, per Linus' decree, any future arch with longs shorter than 64 bits. Signed-off-by: Adam Borowski <kilobyte@angband.pl>
-
Eric Dumazet authored
Allow ss -i to display more TCP informations : unacked:N Number of un-acked packets retrans:X/Y X: number of outstanding retransmit packets Y: total number of retransmits for the session lost:N Number of lost packets (tcpi_lost) sacked:N Number of sacked packets (tcpi_sacked) facked:N Number of facked packets (tcpi_facked) reordering:N Reordering level (if different of 3) Example : $ ss -emoi dst 10.7.7.83 tcp ESTAB 0 1154056 10.7.7.84:54127 10.7.7.83:34342 timer:(on,200ms,0) ino:57003 sk:ffff88063c51d0c0 <-> skmem:(r0,rb89280,t0,tb2097152,f726504,w1436184,o0,bl0) ts sack cubic wscale:7,6 rto:310 rtt:107.375/1 mss:1448 cwnd:568 ssthresh:108 send 61.3Mbps unacked:568 retrans:0/21 reordering:127 rcv_space:29200 Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Yuchung Cheng <ycheng@google.com> Cc: Neal Cardwell <ncardwell@google.com>
-
esr@thyrsus.com authored
Enclosed patch fixes inappropriate uses of the .SS macro. Fuller explanation in the change comment. There are other problems in these pages that block lifting to XML-DocBook, most notably in the command synopses. They will take some creativity to fix. I'm working on it >From 75745adba4b45b87577b61a2daa886dd444f44da Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" <esr@thyrsus.com> Date: Fri, 21 Jun 2013 15:27:38 -0400 Subject: [PATCH] Abolish presentation-level misuse of the .SS macro. This change fixes most (but not all) fatal errors in attempts to lift the iproute2 manual pages to XML-DocBook. Where .SS is still used it is a real subsection header, not just a way to outdent and bold text. Presentation-level instances are turned into .TP calls and tables.
-
- 21 Jun, 2013 1 commit
-
-
Patric McHardy authored
The following patch adds support to ip_vlan for configuring VLAN 802.1ad support. Signed-off-by: Patrick McHardy <kaber@trash.net>
-
- 20 Jun, 2013 3 commits
-
-
Cong Wang authored
This patch adds quickack option to enable/disable TCP quick ack mode for per-route. Cc: Stephen Hemminger <stephen@networkplumber.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Thomas Graf <tgraf@suug.ch> Signed-off-by: Cong Wang <amwang@redhat.com>
-
Rony Efraim authored
Add link state per VF command Signed-off-by: Rony Efraim <ronye@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
-
Stephen Hemminger authored
-
- 07 Jun, 2013 3 commits
-
-
Eric Dumazet authored
On Mon, 2013-06-03 at 16:36 +0100, Ben Hutchings wrote: > Oops, I read this as being strtol() currently, not strtod(). Currently > '1.5gbit' will work, but this change will break that. So I think you > need to keep bps as a double. Arg > Then here I think the check should be *rate != floor(bps), i.e. accept > rounding down of a non-integer number of bytes but any other change is > assumed to be overflow. Thanks Ben, here is v4 then ;) [PATCH v4] get_rate: detect 32bit overflows Current rate limit is 34.359.738.360 bit per second, and unfortunately 40Gbps links are above it. overflows in get_rate() are currently not detected, and some users are confused. Let's detect this and complain. Note that some qdisc are ready to get extended range, but this will need additional attributes and new iproute2 With help from Ben Hutchings Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
-
Stephen Hemminger authored
iproute2 uses kernel style indenting
-
Eric Dumazet authored
"tc class show dev ..." omits the overhead attribute for HTB. After patch I have : tc class add dev $DEV parent 1: classid 1:1 est 1sec 4sec htb \ rate 12Mbit mtu 1500 quantum 1514 overhead 20 tc class show dev $DEV class htb 1:1 root prio 0 rate 12000Kbit overhead 20 ceil 12000Kbit burst 1500b cburst 1500b Signed-off-by: Eric Dumazet <edumazet@google.com>
-
- 05 Jun, 2013 4 commits
-
-
Andrey Vagin authored
v2: update netlink_diag.h Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Andrey Vagin <avagin@openvz.org>
-
Andrey Vagin authored
A netlink socket may be connected to a specific group. Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Andrey Vagin <avagin@openvz.org>
-
Andrey Vagin authored
It will be reused for printing info about netlink sockets, when socket diag is used for retrieving information. Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Andrey Vagin <avagin@openvz.org>
-
Andrey Vagin authored
It will be reused to show netlink sockets Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Andrey Vagin <avagin@openvz.org>
-
- 04 Jun, 2013 3 commits
-
-
Andrey Vagin authored
Otherwise a program executed by "ip netns exec" has two extra descriptors. $ ip netns exec test /bin/bash $ lsof -p $$ ... bash 817 root 0u CHR 136,0 0t0 3 /dev/pts/0 bash 817 root 1u CHR 136,0 0t0 3 /dev/pts/0 bash 817 root 2u CHR 136,0 0t0 3 /dev/pts/0 bash 817 root 3u sock 0,6 0t0 13386 protocol: NETLINK bash 817 root 4r REG 0,3 0 4026532155 net bash 817 root 255u CHR 136,0 0t0 3 /dev/pts/0 Cc: Stephen Hemminger <stephen@networkplumber.org> Reported-by: Dilip Daya <dilip.daya@hp.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Andrey Vagin <avagin@openvz.org>
-
Andreas Henriksson authored
tv_usec is "suseconds_t" which is apparently usually a signed long, but sometimes not.... Change the printf modifier to use signed and cast the tv_usec to long in case it's not already long. gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -fPIC -c -o utils.o utils.c utils.c: In function 'print_timestamp': utils.c:802:2: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type '__suseconds_t' [-Werror=format] cc1: all warnings being treated as errors Signed-off-by: Andreas Henriksson <andreas@fatal.se>
-
John Fastabend authored
Use IFLA_AF_SPEC nested attributes to lookup bridge mode and when doing strcmp() check for equality. These appear to be typos from the original commit, commit 64108901 Author: Vlad Yasevich <vyasevic@redhat.com> Date: Fri Mar 15 10:01:28 2013 -0700 bridge: Add support for setting bridge port attributes Also set flags to BRIDGE_FLAGS_SELF instead of using OR operation. This allows setting the bridge mode when not being used with a master device. To allow setting both master and self devices simultaneously we will need to add a {self|master} field similar to fdb commands. For now the command sets are mutually exclusive as noted in the original commit. With this patch 'bridge link set' works now, # ./bridge/bridge link set dev veth1 cost 3 # ./bridge/bridge link show 10: veth1 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master bridge0 state forwarding priority 3 cost 3 CC: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
-
- 28 May, 2013 1 commit
-
-
Stephen Hemminger authored
No need to state the obvious here.
-
- 24 May, 2013 3 commits
-
-
Sriram Narasimhan authored
This patch adds multi_queue option to ip tuntap. This allows IFF_MULTI_QUEUE flag to be specified during tun/tap device creation enabling multi-queue support in tun/tap device. Example: ip tuntap add dev tap0 mode tap multi_queue Signed-off-by: Sriram Narasimhan <sriram.narasimhan@hp.com>
-
Nicolas Dichtel authored
This option has been recently added to ss utility. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Rami Rosen authored
This patch fixes usage() of misc/ss.c to use bpf instead of bfp. Signed-off-by: Rami Rosen <ramirose@gmail.com>
-
- 23 May, 2013 1 commit
-
-
Stephen Hemminger authored
Dstport option does not work as expected in 3.10 It only allows setting port for sending and does not enable incoming receive.
-
- 17 May, 2013 2 commits
-
-
Pavel Emelyanov authored
When extended info is requested (-e option) one will be able to observe arrows in the output, like this: ESTAB 0 0 127.0.0.1:41705 127.0.0.1:12345 ino:143321 sk:ffff88003a8cea00 --> ESTAB 0 0 127.0.0.1:46925 127.0.0.1:12346 ino:143322 sk:ffff88003a8ce4c0 <-- ESTAB 0 0 127.0.0.1:51678 127.0.0.1:12347 ino:143323 sk:ffff88003a8cdf80 --- ESTAB 0 0 127.0.0.1:46911 127.0.0.1:12348 ino:143324 sk:ffff88003b7f05c0 <-> for SHUT_RD, SHUT_WR, SHUT_RDWR and non-shutdown sockets respectively. The respective nlattrs in *_diag messages has appeared in Linux v3.7 and are already present in ss's headers. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-
Nicolas Dichtel authored
This patch add support of netlink messages for AF_PACKET and thus it allows to get filter information of this kind of sockets. To dump these filters info the option --bfp must be specified and the user must have admin rights. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-