In some mail from Kris Kennaway, sie said:
>
>
> --rwEMma7ioTxnRzrJ
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On Mon, Apr 16, 2001 at 02:03:11AM -0700, Kris Kennaway wrote:
>
> > Here's a patch ported from OpenBSD which randomizes this (supposedly
> > such that it respects the constraint of not wrapping within the
> > prescribed time period). I should wrap it in a sysctl, I guess.
> >=20
> > http://www.freebsd.org/~kris/ipid.patch
>
> Okay, I did this and updated the patch, with the sysctl defaulting to
> off since the random algorithm does add some amount of overhead.
>
> > Comments?
You should optimize it for mod being 2^n-1 (or make that a requirement).
Also, drop the HTONS statements, they no longer make sense. Before ip_id
was a counter and so it made sense (sorta) to change its byte ordering to
network. Now it's just a random number so there is no longer any need.
Darren
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message