Module Name:    src
Committed By:   ryo
Date:           Thu Mar 11 11:10:22 UTC 2021

Modified Files:
        src/sys/netinet6: ip6_var.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/netinet6/ip6_var.h

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_var.h
diff -u src/sys/netinet6/ip6_var.h:1.89 src/sys/netinet6/ip6_var.h:1.90
--- src/sys/netinet6/ip6_var.h:1.89	Mon Mar  8 18:22:16 2021
+++ src/sys/netinet6/ip6_var.h	Thu Mar 11 11:10:22 2021
@@ -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 @@ static __inline uint32_t
 ip6_randomflowlabel(void)
 {
 
-	return cprng_fast32() && 0xfffff;
+	return cprng_fast32() & 0xfffff;
 }
 
 static __inline bool

Reply via email to