Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 17:56:12 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Andre Oppermann <andre@FreeBSD.ORG>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: kern/60889 - zero IP id change issues in 5.2RC2
Message-ID:  <200401072256.i07MuCnH066940@khavrinen.lcs.mit.edu>
In-Reply-To: <3FFC8CBE.13B527A3@freebsd.org>
References:  <200401072023.UAA18922@starburst.demon.co.uk> <3FFC8CBE.13B527A3@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 07 Jan 2004 23:48:30 +0100, Andre Oppermann <andre@FreeBSD.ORG> said:

>  1. Do you think it is neccessary to do a htons() on the randomized
>     ip_id too?  I'd say yes if there is a case where it has to
>     monotonically increase afterwards.  Does it?

IP IDs are nonces.  The only requirement is that they not be reused
for a packet to the same destination IP address before reassembly has
timed out.  In practice, this is impossible to guarantee, so the usual
practice is to try to ensure a complete cycle (of 16-bit numbers).
The order doesn't matter.  I prefer not byte-swapping the address, but
with a modern processor that overhead can probably be pipelined out
anyway.

-GAWollman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401072256.i07MuCnH066940>