fa.netbsd.tech.net
[Top] [All Lists]

Re: randomize source port

Subject: Re: randomize source port
From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Fri, 11 Jul 2008 16:23:11 UTC
Newsgroups: fa.netbsd.tech.net

On Fri, Jul 11, 2008 at 11:00:21AM -0500, Jeremy C. Reed wrote:
> As a quick test, I did the following:

I'm not sure if directly randomising the port is a good idea.
I think it should at least be a random shuffle for the same reason that
the TCP sequence numbers are not using a direct PRNG. Note that a random
shuffle also avoids most of the motivation for moving to a sequential
numbers, at least if short living connections are concerned.

Joerg

<Prev in Thread] Current Thread [Next in Thread>