]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/inet_connection_sock.c
[TCP/DCCP]: Randomize port selection
authorStephen Hemminger <shemminger@osdl.org>
Fri, 4 Nov 2005 00:33:23 +0000 (16:33 -0800)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Sat, 5 Nov 2005 23:23:15 +0000 (21:23 -0200)
commit6df716340da3a6fdd33d73d7ed4c6f7590ca1c42
tree1b3ba3d1a0a08b9b4eaa624a66414b87a70b6fe9
parent6151b31c9616d71f714fc7ef8e2306f67f3b94c3
[TCP/DCCP]: Randomize port selection

This patch randomizes the port selected on bind() for connections
to help with possible security attacks. It should also be faster
in most cases because there is no need for a global lock.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
include/net/inet_hashtables.h
net/dccp/ipv4.c
net/ipv4/inet_connection_sock.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c