netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* inet_hash_connect: source port allocation
@ 2010-11-29 17:04 John Haxby
  2010-11-29 17:26 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: John Haxby @ 2010-11-29 17:04 UTC (permalink / raw)
  To: NetDev

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-29 19:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-29 17:04 inet_hash_connect: source port allocation John Haxby
2010-11-29 17:26 ` Eric Dumazet
2010-11-29 18:29   ` John Haxby
2010-11-29 18:46     ` Eric Dumazet
2010-11-29 19:07       ` Eric Dumazet
2010-11-29 19:21         ` Eric Dumazet
2010-11-29 19:38         ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).