Module Name: src
Committed By: roy
Date: Thu Aug 29 14:26:55 UTC 2019
Modified Files:
src/sys/netinet6: nd6_nbr.c
Log Message:
inet6: change rt_announce and llchange to bool in nd6_na_input()
To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/netinet6/nd6_nbr.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/nd6_nbr.c
diff -u src/sys/netinet6/nd6_nbr.c:1.167 src/sys/netinet6/nd6_nbr.c:1.168
--- src/sys/netinet6/nd6_nbr.c:1.167 Thu Aug 22 21:22:50 2019
+++ src/sys/netinet6/nd6_nbr.c Thu Aug 29 14:26:55 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_nbr.c,v 1.167 2019/08/22 21:22:50 roy Exp $ */
+/* $NetBSD: nd6_nbr.c,v 1.168 2019/08/29 14:26:55 roy Exp $ */
/* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.167 2019/08/22 21:22:50 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.168 2019/08/29 14:26:55 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -611,7 +611,7 @@ nd6_na_input(struct mbuf *m, int off, in
struct llentry *ln = NULL;
union nd_opts ndopts;
struct sockaddr_in6 ssin6;
- int rt_announce;
+ bool rt_announce;
bool checklink = false;
struct psref psref;
struct psref psref_ia;
@@ -770,21 +770,21 @@ nd6_na_input(struct mbuf *m, int off, in
checklink = true;
}
} else {
- int llchange;
+ bool llchange;
/*
* Check if the link-layer address has changed or not.
*/
if (lladdr == NULL)
- llchange = 0;
+ llchange = false;
else {
if (ln->la_flags & LLE_VALID) {
if (memcmp(lladdr, &ln->ll_addr, ifp->if_addrlen))
- llchange = rt_announce = 1;
+ llchange = rt_announce = true;
else
- llchange = 0;
+ llchange = false;
} else
- llchange = rt_announce = 1;
+ llchange = rt_announce = true;
}
/*