mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
tcp/dccp: warn user for preferred ip_local_port_range
After commit 07f4c90062 ("tcp/dccp: try to not exhaust
ip_local_port_range in connect()") it is advised to have an even number
of ports described in /proc/sys/net/ipv4/ip_local_port_range
This means start/end values should have a different parity.
Let's warn sysadmins of this, so that they can update their settings
if they want to.
Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e2baad9e4b
commit
ed2dfd9009
2 changed files with 7 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ struct sock;
|
|||
struct local_ports {
|
||||
seqlock_t lock;
|
||||
int range[2];
|
||||
bool warned;
|
||||
};
|
||||
|
||||
struct ping_group_range {
|
||||
|
|
|
|||
Loading…
Reference in a new issue