RANDOM_IP_ID sysctl?

Xin LI delphij at frontfree.net
Tue Jun 29 06:40:26 PDT 2004


On Tue, Jun 29, 2004 at 02:13:38PM +0100, 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?

Wouldn't this cause a performance penality? IIRC htons() is currently
a macro which is essentially a no-op, while ip_randomid() is a function
call. Of course we can convert the call to a uniform hook-alike mechainism,
however, given the frequency the function is called, this should be
carefully considered.

In addition, what's the apparant benefit making it a sysctl rather
than being a kernel option? I think there is rarely a sysadmin to
enable and disable this runtime.

BTW. For security considerations I'd like to see if this is made default
in GENERIC kernels :-)

Cheers,
-- 
Xin LI <delphij frontfree net>	http://www.delphij.net/
See complete headers for GPG key and other information.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20040629/6f96abf2/attachment.bin


More information about the freebsd-net mailing list