Subject: inet_hash_connect: source port allocation

From: John Haxby <[email-masked]>
Date: Mon, 29 Nov 2010 17:04:02 +0000

Hello,

Please forgive me if this is a stupid question, but is there any 
particular reason why the source port allocation in 
__inet_hash_connect() shouldn't use the same random allocation that 
inet_csk_get_port() uses?  The latter, of course, is used when bind() 
doesn't specify a source port but the implicit "bind" for a connect() 
gets its port allocated by __inet_hash_connect().

jch