Amend missed messages:

netinet6: Pick IPv6 fragment ids uniformly at random.

Expected number of packets before collision is ~2^16, about the same
as we get for IPv4 with alternating disjoint random cycles.  Keep it
simple unless we determine we really need something much better for
IPv6 than what IPv4 can achieve anyway.

netinet6: Rip out now-unused IPv6 fragment id logic.

(from riastradh)
This commit is contained in:
christos 2021-03-07 15:03:32 +00:00
parent 4b58b6c56b
commit ee87d87fd0
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip6_id.c,v 1.20 2021/03/07 14:59:36 christos Exp $ */
/* $NetBSD: ip6_id.c,v 1.21 2021/03/07 15:03:32 christos Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip6_id.c,v 1.20 2021/03/07 14:59:36 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip6_id.c,v 1.21 2021/03/07 15:03:32 christos Exp $");
#include <sys/types.h>
#include <sys/cprng.h>