- 24 Dec, 2014 3 commits
-
-
Vadim Kochan authored
Added new option 'type' to 'ip link show' command which allows to filter devices by type: ip link show type bridge ip link show type vlan Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Heiner Kallweit authored
Sometimes it's needed to have "ip address show" list only addresses with certain flags not being set, e.g. in network scripts. As an example one might want to exclude addresses in "tentative" or "deprecated" state. Support listing addresses with flags tentative, deprecated, dadfailed not being set by prefixing the respective flag with a minus. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
-
Vadim Kochan authored
Added another timestamp format to look like more logging info: [2014-12-22T22:36:50.489 ] 2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default link/ether 3c:97:0e:a3:86:2e brd ff:ff:ff:ff:ff:ff Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
- 20 Dec, 2014 5 commits
-
-
Stephen Hemminger authored
Remove all trailing whitespace and space before tabs.
-
Vadim Kochan authored
Checking by SS_CLOSE state was remowed in: (45a4770b) ss: Remove checking SS_CLOSE state for packet and netlink which is not really correct because now by default all sockets are seen when do 'ss'. Here is most correct fix which considers specified family. To see netlink sockets: ss -A netlink To see packet sockets: ss -A packet And ss by default will show only connected/established sockets as it was before all the time. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
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 10 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>
-
Scott Feldman authored
Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
- 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 2 commits
-
-
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 10 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>
-
vadimk authored
Added 'dev' option to allow filtering events by device. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
vadimk authored
There were only few Netlink protocol names which were printed on the screen: rtnl, fw, tcpdiag So added the ability to identify Netlink proto name from /etc/iproute/nl_protos or from static table. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Tom Herbert authored
Add udpcsum option to enable transmitting UDP checksums when doing VXLAN/IPv4. Add udp6zerocsumtx, and udp6zerocsumrx options to enable sending zero checksums and receiving zero checksums in VXLAN/IPv6. Signed-off-by: Tom Herbert <therbert@google.com>
-