net ipv4: Convert ipv4.ip_local_port_range to be per netns v3
- Move sysctl_local_ports from a global variable into struct netns_ipv4. - Modify inet_get_local_port_range to take a struct net, and update all of the callers. - Move the initialization of sysctl_local_ports into sysctl_net_ipv4.c:ipv4_sysctl_init_net from inet_connection_sock.c v2: - Ensure indentation used tabs - Fixed ip.h so it applies cleanly to todays net-next v3: - Compile fixes of strange callers of inet_get_local_port_range. This patch now successfully passes an allmodconfig build. Removed manual inlining of inet_get_local_port_range in ipv4_local_port_range Originally-by:Samya <samya@twitter.com> Acked-by:
Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by:
"Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/infiniband/core/cma.c 1 addition, 1 deletiondrivers/infiniband/core/cma.c
- drivers/net/vxlan.c 1 addition, 1 deletiondrivers/net/vxlan.c
- include/net/ip.h 1 addition, 5 deletionsinclude/net/ip.h
- include/net/netns/ipv4.h 6 additions, 0 deletionsinclude/net/netns/ipv4.h
- net/ipv4/inet_connection_sock.c 6 additions, 14 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/inet_hashtables.c 1 addition, 1 deletionnet/ipv4/inet_hashtables.c
- net/ipv4/ping.c 2 additions, 2 deletionsnet/ipv4/ping.c
- net/ipv4/sysctl_net_ipv4.c 34 additions, 18 deletionsnet/ipv4/sysctl_net_ipv4.c
- net/ipv4/udp.c 1 addition, 1 deletionnet/ipv4/udp.c
- net/openvswitch/vport-vxlan.c 1 addition, 1 deletionnet/openvswitch/vport-vxlan.c
- net/sctp/socket.c 1 addition, 1 deletionnet/sctp/socket.c
- security/selinux/hooks.c 1 addition, 1 deletionsecurity/selinux/hooks.c
Loading
Please register or sign in to comment