RANDOM_IP_ID sysctl?
Mike Silbersack
silby at silby.com
Fri Jul 2 17:12:05 PDT 2004
On Tue, 29 Jun 2004, David Malone wrote:
> It seems to me that RANDOM_IP_ID might be better as a sysctl rather
> than a kernel option. Would anyone mind if I changed this?
>
> David.
I'd rather see a sysctl that switched between incremental frag IDs and
arc4random() based IDs, followed by the removal of RANDOM_IP_ID.
For more info, see:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/netinet/ip_id.c
(I think we're still using the old code that's collision prone.)
Given that we're in a 16-bit space anyway, it's simpler to just use
arc4random and stop pretending that we can avoid collisions.
Remember: An IP ID collision is equivalent to a packet being lost; this
is not a big deal.
Mike "Silby" Silbersack
More information about the freebsd-net
mailing list