- 01 Jan, 2015 4 commits
-
-
Scott Feldman authored
v2: Resending now that the dust has cleared in 3.18 on "self" vs. hwmode debate for brport settings. learning_sync is now set/cleared using "self" qualifier on brport. v1: Add 'learned_sync' flag to turn on/off syncing of learned MAC addresses from offload device to bridge's FDB. Flag is be set/cleared on offload device port using "self" qualifier: $ sudo bridge link set dev swp1 learning_sync on self $ bridge -d link show dev swp1 2: swp1 state UNKNOWN : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state forwarding priority 32 cost 2 hairpin off guard off root_block off fastleave off learning off flood off 2: swp1 state UNKNOWN : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 learning on learning_sync on Adds new IFLA_BRPORT_LEARNED_SYNCED attribute for IFLA_PROTINFO on the SELF brport. Signed-off-by: Scott Feldman <sfeldma@gmail.com>
-
Vadim Kochan authored
Stolen from generated doc/ss.html Also added reference to RFC 793 for TCP states. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Vadim Kochan authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Vadim Kochan authored
Fixed -t[short] to -ts[hort] as '-t' is related to -timestamp option. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
- 27 Dec, 2014 8 commits
-
-
Vadim Kochan authored
Added new '-netns' option to simplify executing following cmd: ip netns exec NETNS tc OPTIONS COMMAND OBJECT to tc -n[etns] NETNS OPTIONS COMMAND OBJECT e.g.: tc -net vnet0 qdisc Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Vadim Kochan authored
Added new '-netns' option to simplify executing following cmd: ip netns exec NETNS bridge OPTIONS COMMAND OBJECT to bridge -n[etns] NETNS OPTIONS COMMAND OBJECT e.g.: bridge -net vnet0 fdb Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Vadim Kochan authored
Added new '-netns' option to simplify executing following cmd: ip netns exec NETNS ip OPTIONS COMMAND OBJECT to ip -n[etns] NETNS OPTIONS COMMAND OBJECT e.g.: ip -net vnet0 link add br0 type bridge ip -n vnet0 link Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Vadim Kochan authored
New netns_switch func moved to the lib/namespace.c from ip/ipnetns.c so it can be used from the other tools for fast switching network namespace. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-
Vadim Kochan authored
Just another refactoring for ss to use rtnl API from lib Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Vadim Kochan authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Vadim Kochan authored
Added new '-g[raph]' option which shows classes in the graph view. Meanwhile only generic stats info output is supported. e.g.: $ tc/tc -g class show dev tap0 +---(1:2) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b | +---(1:40) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b | +---(1:50) htb rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b | | +---(1:51) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b | | | +---(1:60) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b | +---(1:1) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b +---(1:10) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b +---(1:20) htb prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b +---(1:30) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b $ tc/tc -g -s class show dev tap0 +---(1:2) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b | | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | | rate 0bit 0pps backlog 0b 0p requeues 0 | | | +---(1:40) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b | | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | | rate 0bit 0pps backlog 0b 0p requeues 0 | | | +---(1:50) htb rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b | | | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | | | rate 0bit 0pps backlog 0b 0p requeues 0 | | | | | +---(1:51) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b | | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | | rate 0bit 0pps backlog 0b 0p requeues 0 | | | +---(1:60) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | rate 0bit 0pps backlog 0b 0p requeues 0 | +---(1:1) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | rate 0bit 0pps backlog 0b 0p requeues 0 | +---(1:10) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | rate 0bit 0pps backlog 0b 0p requeues 0 | +---(1:20) htb prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) | rate 0bit 0pps backlog 0b 0p requeues 0 | +---(1:30) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Heiner Kallweit authored
Extend "ip-address" man page to reflect the recent extension of allowing to list addresses with flags tentative, deprecated, dadfailed not being set. Signed-off-by: Heiner Kallweit <heiner.kallweit@web.de>
-
- 24 Dec, 2014 7 commits
-
-
Roopa Prabhu authored
Currently self is set internally only if hwmode is set. This makes it necessary for the hw to have a mode. There is no hwmode really required to go to hardware. So, introduce self for anybody who wants to target hardware. v1 -> v2 - fix a few bugs. Initialize flags to zero: this was required to keep the current behaviour unchanged. v2 -> v3 - fix comment Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Reviewed-by: Jiri Pirko <jiri@resnulli.us>
-
Duan Jiong authored
Use addattr_nest() and addattr_nest_end() to simplify the code. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
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 7 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>
-
Stephen Hemminger authored
-
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>
-