Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 byte-flipping a random number is not very useful.



details:   https://anonhg.NetBSD.org/src/rev/ce89253fd8b1
branches:  trunk
changeset: 981405:ce89253fd8b1
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 10 22:28:26 2021 +0000

description:
byte-flipping a random number is not very useful.

diffstat:

 sys/netinet6/ip6_output.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b6df49fce619 -r ce89253fd8b1 sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c Wed Mar 10 22:18:17 2021 +0000
+++ b/sys/netinet6/ip6_output.c Wed Mar 10 22:28:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_output.c,v 1.226 2020/09/08 14:12:57 christos Exp $        */
+/*     $NetBSD: ip6_output.c,v 1.227 2021/03/10 22:28:26 christos Exp $        */
 /*     $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $    */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.226 2020/09/08 14:12:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.227 2021/03/10 22:28:26 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -889,7 +889,7 @@
                in6_ifstat_inc(ifp, ifs6_out_fragfail);
                goto bad;
        } else {
-               const u_int32_t id = htonl(ip6_randomid());
+               const uint32_t id = ip6_randomid();
                struct mbuf **mnext, *m_frgpart;
                const int hlen = unfragpartlen;
                struct ip6_frag *ip6f;



Home | Main Index | Thread Index | Old Index