- 20 Dec, 2014 4 commits
-
-
Stephen Hemminger authored
-
vadimk authored
Replaced handling netlink messages by rtnl_dump_filter from lib/libnetlink.c, also: - removed unused dump_fp arg; - added MAGIC_SEQ #define for 123456 seq id; - silently exit if ENOENT errno is caused for NETLINK_SOCK_DIAG proto in lib/libnetlink.c: rtnl_duml_filter_l(...) function. This fix was added in a3fd8e58 by Eric for misc/ss.c Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Stephen Hemminger authored
Go back to kernel version of if_bridge.h and use patched version of linux/in6.h and libc-compat.h
-
Stephen Hemminger authored
Needs to be built at runtime.
-
- 10 Dec, 2014 14 commits
-
-
vadimk authored
Now it is posible to filter by existing Netlink protos: ss -A netlink src uevent ss -A netlink src nft ss -A netlink src genl 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>
-
Nikita Edward Baruzdin authored
This patch makes CAN_CTRLMODE_PRESUME_ACK netlink feature configurable. When enabled, the feature sets CAN controller in mode in which acknowledgement absence is ignored. Signed-off-by: Nikita Edward Baruzdin <nebaruzdin@gmail.com> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
-
Eric Dumazet authored
On Fri, 2014-12-05 at 17:13 -0800, Eric Dumazet wrote: > I guess we could count number of spaces/fields in both lines, > and disable the iproute2 trick if counts match. Something like that maybe ? misc/nstat.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) Tested-by: Vijay Subramanian <subramanian.vijay@gmail.com>
-
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: Vadim Kochan <vadim4j@gmail.com>
-
Stephen Hemminger authored
Adding in6.h breaks build with redefined values.
-
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: Vadim Kochan <vadim4j@gmail.com>
-
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: Christophe Gouault <christophe.gouault@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
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: Christophe Gouault <christophe.gouault@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Scott Feldman authored
Add NTF_EXT_LEARNED flag to neigh flags to indicate FDB entry learned by device has been learned externally to bridge FDB. For these entries, add "external" annotation in bridge fdb show output: 00:02:00:00:03:00 dev swp2 used 2/2 master br0 external 00:02:00:00:03:00 dev swp2 self permanent In the example above, 00:02:00:00:03:00 is shown twice on dev swp2. The first entry if from the bridge (master) and is marked as "external" by the offload device. The second entry is from the brport offload device (self), and was learned by the device. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
Stephen Hemminger authored
-
Scott Feldman authored
Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Florian Westphal authored
This permits to selectively enable explicit congestion notification via the routing table. If this ecn feature is not set, the kernel will use the tcp_ecn sysctl to decide wheter to use ECN when establising a TCP connection. At the time of this writing, the kernel supports ecn and allfrags, but allfrags is of dubious value and not implemented here. Example: ip route change 192.168.2.0/24 dev eth0 features ecn Signed-off-by: Florian Westphal <fw@strlen.de>
-
- 05 Dec, 2014 2 commits
-
-
Stephen Hemminger authored
The header wars continue...
-
Stephen Hemminger authored
Need this header file to avoid build issues on older systems like Debian 7
-
- 04 Dec, 2014 4 commits
-
-
Stephen Hemminger authored
Missing "
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Add ESP to decode switch.
-
Stephen Hemminger authored
RFC 2598 defines Expedited Forwarding in section 2.3 Codepoint 101110 is recommended for the EF PHB. which translates to B8 as encoded in rt_dsfield
-
- 03 Dec, 2014 5 commits
-
-
Mahesh Bandewar authored
Adding basic support to create virtual devices using 'ip' utility. Following is the syntax - ip link add link <master> <virtual> type ipvlan mode [ l2 | l3 ] e.g. ip link add link eth0 ipvl0 type ipvlan mode l3 Signed-off-by: Mahesh Bandewar <maheshb@google.com> Cc: Stephen Hemminger <stephen@networkplumber.org> Cc: Eric Dumazet <edumazet@google.com> Cc: Maciej Żenczykowski <maze@google.com> Cc: Laurent Chavey <chavey@google.com> Cc: Tim Hockin <thockin@google.com> Cc: Brandon Philips <brandon.philips@coreos.com> Cc: Pavel Emelianov <xemul@parallels.com>
-
Jiri Pirko authored
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> Reviewed-by: Cong Wang <cwang@twopensource.com>
-
Stephen Hemminger authored
Early merge of upstream headers
-
vadimk authored
BEFORE: The show command has additional formatting options: -s, -stats, -statistics output more statistics about packet usage. -d, -details output more detailed information. -h, -human, -human-readble output statistics with human readable values number followed by suffix -iec print human readable rates in IEC units (ie. 1K = 1024). AFTER: The show command has additional formatting options: -s, -stats, -statistics output more statistics about packet usage. -d, -details output more detailed information. -h, -human, -human-readble output statistics with human readable values number followed by suffix -iec print human readable rates in IEC units (ie. 1K = 1024). Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Pavel Simerda authored
Just print the help when "ip route del" is called without any other arguments. Resolves: * https://bugzilla.redhat.com/show_bug.cgi?id=997965Signed-off-by: Pavel Šimerda <psimerda@redhat.com>
-
- 30 Nov, 2014 4 commits
-
-
vadimk authored
Added checking existence of the doc files converters. If the XXX tool exists then HAVE_XXX:=y will be written to the Config file. Example of the configure script output: TC schedulers ATM no IPT using xtables IPSET yes iptables modules directory: /usr/lib/iptables libc has setns: yes SELinux support: no Docs latex: no WARNING: no docs can be built from LaTeX files sgml2html: yes Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Stephen Hemminger authored
Use current upstream header.
-
vadimk authored
Get rid of self-handling and creating of Netlink socket for show packet socket stats. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
- 29 Nov, 2014 7 commits
-
-
vadimk authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Vadim Kochan authored
Added 'master' option to 'ip link show' command to filter devices by master dev. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Dave Taht authored
-
vadimk authored
When output the netlink sockets: ss -A netlink state close the layout is a little broken with a shifted 'Peer Address:Port' stars and empty new lines. Fixed by making the port field to be wider for 'Local Address:Port' column. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
I dont see a reason that packet and netlink states will be printed only if SS_CLOSE state is set in filter, in that case to print states of netlink or packet sockets it is needed to run: ss -A netlink state close instead of: ss -A netlink Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
As 'ip' util will share the same netns from the caller process then we can just look at /proc/self/.. to show the netns of the current process by: ip netns id Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
With this change the results of tc tests will be recorded under: testsuite/results/tc/ The ip related tests can be added under: testsuite/tests/ip Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-