- 10 Aug, 2015 1 commit
-
-
Daniel Borkmann authored
Frontend support for kernel commit a5c90b29e5cc ("act_bpf: properly support late binding of bpf action to a classifier"). Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-
- 01 Aug, 2015 5 commits
-
-
Stephen Hemminger authored
Align with upstream kernel.
-
Nikolay Aleksandrov authored
Before this patch both addmdb and delmdb events were printed the same, now we'll get a "Deleted" string in front when delmdb is received. Before: $ bridge mdb add dev br0 port eth3 grp 239.0.0.1 (monitor) dev br0 port eth3 grp 239.0.0.1 temp $ bridge mdb del dev br0 port eth3 grp 239.0.0.1 (monitor) dev br0 port eth3 grp 239.0.0.1 temp ^^ No way to differentiate between both events. After: $ bridge mdb add dev br0 port eth3 grp 239.0.0.1 (monitor) dev br0 port eth3 grp 239.0.0.1 temp $ bridge mdb del dev br0 port eth3 grp 239.0.0.1 (monitor) Deleted dev br0 port eth3 grp 239.0.0.1 temp Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
-
Stephen Hemminger authored
-
Antti Paila authored
Reset the 'preferred_family' global variable to its initially set value before each batch file command is processed. Signed-off-by: Antti Paila <antti.paila@gmail.com>
-
Roopa Prabhu authored
This is similar to command options corresponding to other NTF_* flags already exposed to the user space (examples self/master). Also updates bridge man page (The man page patch also includes a fix to the 'self' entry and documents 'master' for fdb entries) Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
-
- 28 Jul, 2015 5 commits
-
-
Stephen Hemminger authored
Left over copy/paste from ip monitor man page.
-
Nikolay Aleksandrov authored
This patch allows the user to specify the vlan of the mdb group being added or deleted and adds support for displaying the vlan when dumping mdb information or monitoring it. It also updates the man page to reflect the new "vid" argument for mdb. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
-
Anuradha Karuppiah authored
This patch adds support to set and display protodown on a switch port. The switch driver can handle this error state by doing a phys down on the port. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation on peer-link failure. Example: root@net-next:~# ip link set eth1 protodown on root@net-next:~/iproute2# ip link show eth1 4: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 52:54:00:12:35:01 brd ff:ff:ff:ff:ff:ff protodown on root@net-next:~/iproute2# ip link set eth1 protodown off root@net-next:~/iproute2# ip link show eth1 4: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 52:54:00:12:35:01 brd ff:ff:ff:ff:ff:ff root@net-next:~/iproute2# Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com> Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Wilson Kok <wkok@cumulusnetworks.com>
-
Stephen Hemminger authored
-
Felix Janda authored
Prefer using the POSIX constant PATH_MAX instead of the legacy BSD derived MAXPATHLEN. The necessary includes for MAXPATHLEN and PATH_MAX are <sys/param.h> and <limits.h>, respectively. Signed-off-by: Felix Janda <felix.janda@posteo.de> Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
-
- 27 Jul, 2015 6 commits
-
-
Nikolay Aleksandrov authored
This patch adds support for ADDMDB/DELMDB notifications about router ports which have been added or deleted/expired respectively. Example output: $ bridge -s monitor mdb Deleted router port dev eth3 master br0 router port dev eth3 master br0 Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
-
Zhang Shengju authored
Make sure that return value of each socket() call is properly checked and do not continue processing if the call failed. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
-
Zhang Shengju authored
Remove dupldated include for <linux/xfrm.h>, since it's already included by 'xfrm.h'. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
-
Nicolas Dichtel authored
Error was: f_bpf.o: In function `bpf_parse_opt': f_bpf.c:(.text+0x88f): undefined reference to `secure_getenv' m_bpf.o: In function `parse_bpf': m_bpf.c:(.text+0x587): undefined reference to `secure_getenv' collect2: error: ld returned 1 exit status There is no special reason to use the secure version of getenv, thus let's simply use getenv(). CC: Daniel Borkmann <daniel@iogearbox.net> Fixes: 88eea539 ("tc: {f,m}_bpf: allow to retrieve uds path from env") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@plumgrid.com> Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
-
Vadim Kochan authored
Really by default ss dumps not only TCP sockets but any kind of socket which is in ESTABLISHED state (TCP/UDP/UNIX). Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Reported-by: Miha Marolt <miham@beyondsemi.com>
-
Stephen Hemminger authored
Zhang Shengju some places where tabs were not being used. Go ahead and fix all the trival checkpatch warnings in ip/ip.c Also fix bridge.c
-
- 21 Jul, 2015 2 commits
-
-
Vadim Kochan authored
It really partially reverts: ec4d0d8a (ss: Replace unixstat struct by new sockstat struct) but adds few fields (name & peer_name) from removed unixstat to sockstat struct to easy return original code. Fixes: ec4d0d8a (ss: Replace unixstat struct by new sockstat struct) Reported-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Stephen Hemminger authored
Since free(NULL) is a no-op, it is safe to remove unnecesary if checks.
-
- 20 Jul, 2015 4 commits
-
-
Jiri Pirko authored
We forgot to include this patch somehow. So do it now. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
-
Nikolay Aleksandrov authored
After commit 8250bc9f ("ss: Unify inet sockets output") raw sockets are displayed as udp because dgram_show_line() is used for both and thus IPPROTO_UDP is used for both so proto_name() returns "udp". Fix this by checking dg_proto which is set according to the caller of dgram_show_line(). Reported-by: Miha Marolt <miham@beyondsemi.com> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
-
Stephen Hemminger authored
-
Roopa Prabhu authored
This patch replaces exits with returns in ip route get command handling. This allows batching of ip route get commands. $cat route_get_batch.txt route get 10.0.14.2 route get 12.0.14.2 route get 10.0.14.4 $ip -batch route_get_batch.txt local 10.0.14.2 dev lo src 10.0.14.2 cache <local> 12.0.14.2 via 192.168.0.2 dev eth0 src 192.168.0.15 cache 10.0.14.4 dev dummy0 src 10.0.14.2 cache Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
-
- 06 Jul, 2015 4 commits
-
-
Jan Engelhardt authored
The build otherwise fails if libmnl does not directly live in a standard search path.
-
Gustavo Zacarias authored
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
-
Stephen Hemminger authored
if_tun: new ioctl value libc-compat.h: add definitions for kernel build
-
Michal Kubeček authored
Copy of kernel include/uapi/linux/tipc.h is needed to build on systems with pre-3.16 kernel headers. Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
-
- 26 Jun, 2015 13 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Daniel Borkmann authored
Add a start of a man-page to the misc section as a reference and guide on (e)BPF classifier and actions. Given that tc is only tersely documented, this is provided in the hope that users will have an easier getting started with tc and (e)BPF. And, that there's now more incentive for others to also start documenting their classifier and actions as well. ;) Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@plumgrid.com>
-
Phil Sutter authored
If available and set, print 'v6only:1' for AF_INET6 sockets upon request of extended information. For IPv6 sockets bound to in6addr_any, this is the only way to determine if they will also accept IPv4 requests or not. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Andy Gospodarek authored
Signed-off-by: Andy Gospodaerk <gospo@cumulusnetworks.com> Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com> Acked-by: Scott Feldman <sfeldma@gmail.com>
-
Craig Gallek authored
Use the IPv4/IPv6/TCP/UDP multicast groups of NETLINK_SOCK_DIAG to filter and display socket statistics as they are destroyed. Kernel support patch series: 24029a3603cfa633e8bc2b3fb3e48e76c497831d Signed-off-by: Craig Gallek <kraig@google.com>
-
Nikolay Aleksandrov authored
This patch adds support to set bridge stp priority via IFLA_BR_PRIORITY. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
-
Nikolay Aleksandrov authored
This patch adds support to set stp_state via IFLA_BR_STP_STATE. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
-
Nikolay Aleksandrov authored
This patch adds support to set ageing_time via IFLA_BR_AGEING_TIME. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
-
Nikolay Aleksandrov authored
This patch adds support to retrieve the new bond slave attributes: IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE which are read-only. (Removed if_link.h changes already updated in net-next) Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
-
Stephen Hemminger authored
-
Eran Ben Elisha authored
Enable reading and displaying SRIOV VFs traffic statistics through the host PF netdevice using the nested IFLA_VF_STATS attribute. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
-
Roopa Prabhu authored
This patch fixes incorrect -EINVAL errors due to invalid scope and type during mpls route deletes. $ip -f mpls route add 100 as 200 via inet 10.1.1.2 dev swp1 $ip -f mpls route show 100 as to 200 via inet 10.1.1.2 dev swp1 $ip -f mpls route del 100 as 200 via inet 10.1.1.2 dev swp1 RTNETLINK answers: Invalid argument $ip -f mpls route del 100 RTNETLINK answers: Invalid argument After patch: $ip -f mpls route show 100 as to 200 via inet 10.1.1.2 dev swp1 $ip -f mpls route del 100 as 200 via inet 10.1.1.2 dev swp1 $ip -f mpls route show Always set type to RTN_UNICAST for mpls route add/deletes. Also to keep things consistent with kernel set scope to RT_SCOPE_UNIVERSE for both mpls and ipv6 routes. Both mpls and ipv6 route deletes ignore scope. Suggested-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Vivek Venkataraman <vivek@cumulusnetworks.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
-