Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Sprinkle some const



details:   https://anonhg.NetBSD.org/src/rev/97286933c279
branches:  trunk
changeset: 937474:97286933c279
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Aug 20 11:01:02 2020 +0000

description:
Sprinkle some const

diffstat:

 sys/netinet6/nd6.h     |   4 ++--
 sys/netinet6/nd6_nbr.c |  11 ++++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (54 lines):

diff -r 579338710f82 -r 97286933c279 sys/netinet6/nd6.h
--- a/sys/netinet6/nd6.h        Thu Aug 20 07:57:01 2020 +0000
+++ b/sys/netinet6/nd6.h        Thu Aug 20 11:01:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6.h,v 1.89 2020/06/12 11:04:45 roy Exp $     */
+/*     $NetBSD: nd6.h,v 1.90 2020/08/20 11:01:02 roy Exp $     */
 /*     $KAME: nd6.h,v 1.95 2002/06/08 11:31:06 itojun Exp $    */
 
 /*
@@ -200,7 +200,7 @@
        const struct in6_addr *, u_long, int, const struct sockaddr *);
 void nd6_ns_input(struct mbuf *, int, int);
 void nd6_ns_output(struct ifnet *, const struct in6_addr *,
-       const struct in6_addr *, struct in6_addr *, uint8_t *);
+       const struct in6_addr *, const struct in6_addr *, const uint8_t *);
 const void *nd6_ifptomac(const struct ifnet *);
 void nd6_dad_start(struct ifaddr *, int);
 void nd6_dad_stop(struct ifaddr *);
diff -r 579338710f82 -r 97286933c279 sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c    Thu Aug 20 07:57:01 2020 +0000
+++ b/sys/netinet6/nd6_nbr.c    Thu Aug 20 11:01:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_nbr.c,v 1.179 2020/06/12 11:04:45 roy Exp $        */
+/*     $NetBSD: nd6_nbr.c,v 1.180 2020/08/20 11:01:02 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.179 2020/06/12 11:04:45 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.180 2020/08/20 11:01:02 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -389,13 +389,14 @@
 void
 nd6_ns_output(struct ifnet *ifp, const struct in6_addr *daddr6,
     const struct in6_addr *taddr6,
-    struct in6_addr *hsrc,
-    uint8_t *nonce             /* duplicate address detection */)
+    const struct in6_addr *hsrc,
+    const uint8_t *nonce       /* duplicate address detection */)
 {
        struct mbuf *m;
        struct ip6_hdr *ip6;
        struct nd_neighbor_solicit *nd_ns;
-       struct in6_addr *src, src_in;
+       const struct in6_addr *src;
+       struct in6_addr src_in;
        struct ip6_moptions im6o;
        int icmp6len;
        int maxlen;



Home | Main Index | Thread Index | Old Index