Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 flowlabel will never return anything other than...



details:   https://anonhg.NetBSD.org/src/rev/f2c3ed24e44c
branches:  trunk
changeset: 960192:f2c3ed24e44c
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Mar 11 11:10:22 2021 +0000

description:
flowlabel will never return anything other than 1 or 0.
s/&&/&/

diffstat:

 sys/netinet6/ip6_var.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8f696f94b3bc -r f2c3ed24e44c sys/netinet6/ip6_var.h
--- a/sys/netinet6/ip6_var.h    Thu Mar 11 10:45:33 2021 +0000
+++ b/sys/netinet6/ip6_var.h    Thu Mar 11 11:10:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_var.h,v 1.89 2021/03/08 18:22:16 christos Exp $    */
+/*     $NetBSD: ip6_var.h,v 1.90 2021/03/11 11:10:22 ryo Exp $ */
 /*     $KAME: ip6_var.h,v 1.33 2000/06/11 14:59:20 jinmei Exp $        */
 
 /*
@@ -382,7 +382,7 @@
 ip6_randomflowlabel(void)
 {
 
-       return cprng_fast32() && 0xfffff;
+       return cprng_fast32() & 0xfffff;
 }
 
 static __inline bool



Home | Main Index | Thread Index | Old Index