- 27 Oct, 2015 1 commit
-
-
Stephen Hemminger authored
Fix Coverity warning from dead code.
-
- 25 Sep, 2015 5 commits
-
-
Stephen Hemminger authored
-
Eric Dumazet authored
linux-3.19 fq packet scheduler got a new attribute, controlling number of 'flows' holding packets not attached to a socket (forwarding usage) kernel commit is 06eb395fa9856b5a87cf7d80baee2a0ed3cdb9d7 ("pkt_sched: fq: better control of DDOS traffic") This patch adds corresponding code to tc command. tc qd replace dev eth0 root fq orphan_mask 511 Signed-off-by: Eric Dumazet <edumazet@google.com>
-
Dan Webster authored
Commit 1527a17e introduced a change where the second of two ssfilter_parse() calls in ss.c was moved outside of a conditional block (ss.c: ~3575). This commit enabled the parsing of services, such as 'sport = :ssh', but inadvertently broke the '-F' file-based filtering:
-
Florian Westphal authored
Partially based on kernel Kconfig help text, code comments and git commit messages from Eric Dumazet. Joint work with Phil Sutter. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
-
Eric Dumazet authored
Support -timestamp and -tshort options for tc monitor like ip monitor. # tc -tshort monitor [2015-09-23T16:39:11.260555] qdisc fq 8003: dev eth0 root refcnt 2 limit 10000p flow_limit 100p buckets 1024 quantum 3028 initial_quantum 15140 refill_delay 40.0ms Signed-off-by: Eric Dumazet <edumazet@google.com>
-
- 23 Sep, 2015 13 commits
-
-
David Ahern authored
The brief format does not honer the master and type filters: $ ip link show master vrf-mgmt 7: dummy0: <BROADCAST,NOARP,SLAVE> mtu 1500 qdisc noop master vrf-mgmt state DOWN mode DEFAULT group default qlen 1000 link/ether 66:39:cc:2b:e9:bd brd ff:ff:ff:ff:ff:ff $ ip -br link show master vrf-mgmt lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> eth0 UP 08:00:27:de:14:c8 <BROADCAST,MULTICAST,UP,LOWER_UP> eth1 UP 08:00:27:87:02:f1 <BROADCAST,MULTICAST,UP,LOWER_UP> eth2 UP 08:00:27:61:1e:fd <BROADCAST,MULTICAST,UP,LOWER_UP> vrf-blue UNKNOWN a6:3f:09:34:7e:74 <NOARP,MASTER,UP,LOWER_UP> vrf-red DOWN fe:a2:2d:e1:bc:ac <NOARP,MASTER> dummy0 DOWN 66:39:cc:2b:e9:bd <BROADCAST,NOARP,SLAVE> dummy1 DOWN 4a:4f:13:91:64:b1 <BROADCAST,NOARP,SLAVE> dummy2 DOWN b2:4f:b6:cd:bd:a6 <BROADCAST,NOARP> dummy3 DOWN 1e:06:3d:40:b8:c2 <BROADCAST,NOARP,SLAVE> vrf-mgmt DOWN ce:b2:74:41:21:df <NOARP,MASTER> With this patch the expected output is shown: $ ip -br link show master vrf-mgmt dummy0 DOWN 66:39:cc:2b:e9:bd <BROADCAST,NOARP,SLAVE> Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
-
Andrew Vagin authored
Currently when we specify AF_INET6 when it is disabled, we will get all routes. For example, we can boot kernel with ipv6.disable=1 and try to get ipv6 routes: $ ip -6 route show default via 192.168.122.1 dev eth0 proto static metric 100 192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.141 metric 100 Here are ipv4 routes and this is unexpected behaviour. Signed-off-by: Andrew Vagin <avagin@openvz.org>
-
Vadim Kochan authored
Changed HRB -> HTB. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Vadim Kochan authored
Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Acked-by: Jeremy Harris <jgh@redhat.com>
-
Phil Sutter authored
Code to parse and export this tuneable via netlink is already present in sched_fq.c of the kernel, so not making it accessible for users would be a waste of resources. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
Some qdiscs still lack a manpage, so listing them here is the only way for a user to get to know them. For the others, this serves as an overview of what is there. Content was taken over from the dedicated manpage if available and suitable, so there is definitely room for improvement at least by adjusting it more to the context in which it is now. In case there wasn't appropriate wording available, I tried to identify key aspects of the given qdisc. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
Commit 05325552 ('Support "ip link add help" for rtnl_link API') added a check for specified help parameter. Though due to the place where it has been added to, it is not possible anymore to force a given parameter to be interpreted as interface name by prefixing it with 'dev '. Fix this by forcing whatever follows 'dev' to be presumed as interface name. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
While there is not much to explain about this rather trivial shell script, having a manpage for it serves as good point of reference for users wondering what it might be for. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
This patch follows the changes of commit 4d98ab00 ("Fix FSF address in file headers"), fixing file headers added after it. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
When fixing the BNF syntax error, I overlooked that 'ip address help' prints a more correct synopsis. This patch aligns them. Fixes: 715296b8 ("ip-address.8.in: fix BNF syntax error") Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
Since 'ip help' lists it, it should be described in ip.8 as well. Signed-off-by: Phil Sutter <phil@nwl.cc>
-
- 21 Sep, 2015 2 commits
-
-
Vadim Kochan authored
Add check for Berkeley DB header & lib before compile arpd util. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Arthur Gautier authored
Signed-off-by: Arthur Gautier <baloo@gandi.net>
-
- 11 Sep, 2015 1 commit
-
-
Stephen Hemminger authored
After cookie there was no newline.
-
- 09 Sep, 2015 1 commit
-
-
Mike Saal authored
Hi: I found a formatting bug in the 4.1.1 ss command. The following line was incorrectly output due to passing a negative length to printf() when displaying the local address. In this instance hostapd does a "bind to device" on cdreth0 and then does a udp "in address any" port 67 bind. Please note the whitespace between the '*' and ' %cdreth0:67' 'udp UNCONN 0 0 ** %cdreth0:67* *:* users:(("hostapd",pid=19241,fd=5))' Attached is my patch for the bug fix, it might be prudent to add more guard code looking for negative length format codes. Sincerely, Mike
-
- 07 Sep, 2015 1 commit
-
-
Denis Kirjanov authored
Before: kda@vfirst ~/devel/iproute2 $ ./ip/ip route flush cache Cannot open "/proc/sys/net/ipv4/route/flush" After: kda@vfirst ~/devel/iproute2/ip $ ./ip route flush cache Cannot open "/proc/sys/net/ipv4/route/flush": Permission denied Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
-
- 31 Aug, 2015 6 commits
-
-
Toshiaki Makita authored
This patch adds support for bridge vlan_protocol. Example: $ ip link set br0 type bridge vlan_protocol 802.1ad $ ip -d link show br0 4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 44:37:e6:ab:cd:ef brd ff:ff:ff:ff:ff:ff promiscuity 0 bridge forward_delay 0 hello_time 200 max_age 2000 ageing_time 30000 stp_state 0 priority 32768 vlan_filtering 0 vlan_protocol 802.1ad addrgenmode eui64 Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Konstantin Shemyak authored
* "vti" and "vti6" tunnel modes added to ip-tunnel.8 manual page * Added "hoplimit" terminology for IPv6 * Corrected usage line * Minor language fix
-
Andy Gospodarek authored
This adds support for slightly less output than is normally provided by 'ip link show' and 'ip addr show'. This is a bit better when you have a host with lots of interfaces. Sample output: $ ip -br link show lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> p2p1 UP 08:00:27:ee:0b:3b <BROADCAST,MULTICAST,UP,LOWER_UP> p7p1 UP 08:00:27:9d:62:9f <BROADCAST,MULTICAST,UP,LOWER_UP> p8p1 DOWN 08:00:27:dc:d8:ca <NO-CARRIER,BROADCAST,MULTICAST,UP> p9p1 UP 08:00:27:76:d9:75 <BROADCAST,MULTICAST,UP,LOWER_UP> p7p1.100@p7p1 UP 08:00:27:9d:62:9f <BROADCAST,MULTICAST,UP,LOWER_UP> $ ip -br -4 addr show lo UNKNOWN 127.0.0.1/8 p2p1 UP 192.168.56.2/24 p7p1 UP 70.0.0.1/24 p8p1 DOWN 80.0.0.1/24 p9p1 UP 10.0.5.15/24 p7p1.100@p7p1 UP 200.0.0.1/24 $ ip -br -6 addr show lo UNKNOWN ::1/128 p2p1 UP fe80::a00:27ff:feee:b3b/64 p7p1 UP 7000::1/8 fe80::a00:27ff:fe9d:629f/64 p8p1 DOWN 8000::1/8 p9p1 UP fe80::a00:27ff:fe76:d975/64 p7p1.100@p7p1 UP fe80::a00:27ff:fe9d:629f/64 $ ip -br addr show p7p1 p7p1 UP 70.0.0.1/24 7000::1/8 fe80::a00:27ff:fe9d:629f/64 v2: Now with color support! v3: Better field width estimation (except netdev names to keep output at a decent width) and whitespace fixup. Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
-
- 25 Aug, 2015 2 commits
-
-
Stephen Hemminger authored
Mostly just use of {} and whitespace.
-
Vadim Kochan authored
Add little more info about how to manually set priority by iptables, and some little clarifications about ingress/egress QoS mapping. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
- 23 Aug, 2015 4 commits
-
-
David Ahern authored
Allow user to create a vrf device and specify its table binding. Based on the iplink_vlan implementation. Signed-off-by: Shrijeet Mukherjee <shm@cumulusnetworks.com> Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Formatting JSON is moderately painful. Provide a simple API to do the syntax formatting.
-
- 19 Aug, 2015 4 commits
-
-
Vadim Kochan authored
Add more explanation about VLAN reordering and what it affects. Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
-
Phil Sutter authored
The previous man page fixup introduced a syntax error due to missing opening bracket, which might crash some humanoid BNF parsers. Fixes: 4e972d5e ("ip-address: fix and extend documentation") Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Phil Sutter authored
My previous patch 5950ba91 ("lib/namespace: don't leak fd in error case") was a step in the wrong direction. Instead of closing the opened file descriptor in error case only, follow a better approach here and close the fd as soon as it is not used anymore. This way the inelegant goto statements can be dropped, and the fd leak in non-error case is fixed as well. Fixes: 5950ba91 ("lib/namespace: don't leak fd in error case") Signed-off-by: Phil Sutter <phil@nwl.cc>
-
Zhang Shengju authored
Cut one level indentation to make things easier to read. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
-