David Malone 1f44b0a1b5 Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD
have already done this, so I have styled the patch on their work:

        1) introduce a ip_newid() static inline function that checks
        the sysctl and then decides if it should return a sequential
        or random IP ID.

        2) named the sysctl net.inet.ip.random_id

        3) IPv6 flow IDs and fragment IDs are now always random.
        Flow IDs and frag IDs are significantly less common in the
        IPv6 world (ie. rarely generated per-packet), so there should
        be smaller performance concerns.

The sysctl defaults to 0 (sequential IP IDs).

Reviewed by:	andre, silby, mlaier, ume
Based on:	NetBSD
MFC after:	2 months
2004-08-14 15:32:40 +00:00
..
2003-02-26 06:56:46 +00:00
2003-03-25 05:19:18 +00:00
2004-03-18 09:45:17 +00:00
2004-04-22 02:22:18 +00:00
2003-06-23 17:02:43 +00:00
2003-06-30 05:25:36 +00:00
2002-10-04 20:35:02 +00:00
2004-06-23 14:22:14 +00:00
2004-06-23 14:22:14 +00:00
2004-07-13 09:37:49 +00:00
2004-06-09 08:27:05 +00:00
2004-07-12 13:13:17 +00:00
2002-11-06 13:41:40 +00:00
2004-03-15 11:27:39 +00:00
2004-01-11 07:01:30 +00:00
2003-03-29 13:40:41 +00:00
2002-08-12 15:27:17 +00:00
2004-06-09 08:27:05 +00:00
2004-08-04 18:30:31 +00:00
2002-10-31 19:39:23 +00:00
2002-04-16 20:40:06 +00:00
2003-03-05 08:16:29 +00:00
2003-08-30 08:01:05 +00:00
2003-03-05 08:16:29 +00:00
2003-07-21 21:47:47 +00:00
2003-04-13 06:27:13 +00:00
2002-11-05 09:37:32 +00:00
2004-07-16 04:00:08 +00:00
2003-03-29 10:01:03 +00:00
2002-06-17 05:40:49 +00:00
2004-01-19 12:36:08 +00:00
2002-11-06 13:41:40 +00:00
2002-10-13 18:44:26 +00:00
2004-07-12 21:59:06 +00:00
2004-06-09 21:52:12 +00:00