Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 inet6: change rt_announce and llchange to bool ...



details:   https://anonhg.NetBSD.org/src/rev/3578f9404a2c
branches:  trunk
changeset: 453856:3578f9404a2c
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Aug 29 14:26:55 2019 +0000

description:
inet6: change rt_announce and llchange to bool in nd6_na_input()

diffstat:

 sys/netinet6/nd6_nbr.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r b9eea8442e74 -r 3578f9404a2c sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c    Thu Aug 29 13:01:07 2019 +0000
+++ b/sys/netinet6/nd6_nbr.c    Thu Aug 29 14:26:55 2019 +0000
@@ -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 @@
        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 @@
                        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;
                }
 
                /*



Home | Main Index | Thread Index | Old Index