Module Name:    src
Committed By:   roy
Date:           Thu Aug 20 11:01:02 UTC 2020

Modified Files:
        src/sys/netinet6: nd6.h nd6_nbr.c

Log Message:
Sprinkle some const


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/netinet6/nd6.h
cvs rdiff -u -r1.179 -r1.180 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.h
diff -u src/sys/netinet6/nd6.h:1.89 src/sys/netinet6/nd6.h:1.90
--- src/sys/netinet6/nd6.h:1.89	Fri Jun 12 11:04:45 2020
+++ src/sys/netinet6/nd6.h	Thu Aug 20 11:01:02 2020
@@ -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 @@ void nd6_na_output(struct ifnet *, const
 	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 *);

Index: src/sys/netinet6/nd6_nbr.c
diff -u src/sys/netinet6/nd6_nbr.c:1.179 src/sys/netinet6/nd6_nbr.c:1.180
--- src/sys/netinet6/nd6_nbr.c:1.179	Fri Jun 12 11:04:45 2020
+++ src/sys/netinet6/nd6_nbr.c	Thu Aug 20 11:01:02 2020
@@ -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 @@ nd6_ns_input(struct mbuf *m, int off, in
 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;

Reply via email to