Module Name:    src
Committed By:   christos
Date:           Wed Mar 10 22:28:27 UTC 2021

Modified Files:
        src/sys/netinet6: ip6_output.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.226 -r1.227 src/sys/netinet6/ip6_output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/ip6_output.c
diff -u src/sys/netinet6/ip6_output.c:1.226 src/sys/netinet6/ip6_output.c:1.227
--- src/sys/netinet6/ip6_output.c:1.226	Tue Sep  8 10:12:57 2020
+++ src/sys/netinet6/ip6_output.c	Wed Mar 10 17:28:26 2021
@@ -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 @@ ip6_output(
 		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;

Reply via email to