net: reserve ports for applications using fixed port numbers
(Dropped the infiniband part, because Tetsuo modified the related code, I will send a separate patch for it once this is accepted.) This patch introduces /proc/sys/net/ipv4/ip_local_reserved_ports which allows users to reserve ports for third-party applications. The reserved ports will not be used by automatic port assignments (e.g. when calling connect() or bind() with port number 0). Explicit port allocation behavior is unchanged. Signed-off-by:Octavian Purdila <opurdila@ixiacom.com> Signed-off-by:
WANG Cong <amwang@redhat.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/ip-sysctl.txt 31 additions, 0 deletionsDocumentation/networking/ip-sysctl.txt
- include/net/ip.h 6 additions, 0 deletionsinclude/net/ip.h
- net/ipv4/af_inet.c 7 additions, 1 deletionnet/ipv4/af_inet.c
- net/ipv4/inet_connection_sock.c 6 additions, 0 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/inet_hashtables.c 2 additions, 0 deletionsnet/ipv4/inet_hashtables.c
- net/ipv4/sysctl_net_ipv4.c 17 additions, 0 deletionsnet/ipv4/sysctl_net_ipv4.c
- net/ipv4/udp.c 2 additions, 1 deletionnet/ipv4/udp.c
- net/sctp/socket.c 2 additions, 0 deletionsnet/sctp/socket.c
Loading
Please register or sign in to comment