Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Declare input argument to in6_sin_2_v4mapsin6 t...



details:   https://anonhg.NetBSD.org/src/rev/b6175d116659
branches:  trunk
changeset: 806380:b6175d116659
user:      rjs <rjs%NetBSD.org@localhost>
date:      Fri Feb 20 22:13:48 2015 +0000

description:
Declare input argument to in6_sin_2_v4mapsin6 to be const, allows an
address from the route cache to be used as the input.

ok christos@.

diffstat:

 sys/netinet6/in6.c |  6 +++---
 sys/netinet6/in6.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 59b7e21fc6e8 -r b6175d116659 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Fri Feb 20 17:44:54 2015 +0000
+++ b/sys/netinet6/in6.c        Fri Feb 20 22:13:48 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.180 2014/12/02 19:36:58 christos Exp $       */
+/*     $NetBSD: in6.c,v 1.181 2015/02/20 22:13:48 rjs Exp $    */
 /*     $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $   */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.180 2014/12/02 19:36:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.181 2015/02/20 22:13:48 rjs Exp $");
 
 #include "opt_inet.h"
 #include "opt_compat_netbsd.h"
@@ -2341,7 +2341,7 @@
 
 /* Convert sockaddr_in to sockaddr_in6 in v4 mapped addr format. */
 void
-in6_sin_2_v4mapsin6(struct sockaddr_in *sin, struct sockaddr_in6 *sin6)
+in6_sin_2_v4mapsin6(const struct sockaddr_in *sin, struct sockaddr_in6 *sin6)
 {
        memset(sin6, 0, sizeof(*sin6));
        sin6->sin6_len = sizeof(struct sockaddr_in6);
diff -r 59b7e21fc6e8 -r b6175d116659 sys/netinet6/in6.h
--- a/sys/netinet6/in6.h        Fri Feb 20 17:44:54 2015 +0000
+++ b/sys/netinet6/in6.h        Fri Feb 20 22:13:48 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.h,v 1.82 2015/01/20 21:27:36 roy Exp $     */
+/*     $NetBSD: in6.h,v 1.83 2015/02/20 22:13:48 rjs Exp $     */
 /*     $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $    */
 
 /*
@@ -770,7 +770,7 @@
 struct cmsghdr;
 
 void   in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *);
-void   in6_sin_2_v4mapsin6(struct sockaddr_in *, struct sockaddr_in6 *);
+void   in6_sin_2_v4mapsin6(const struct sockaddr_in *, struct sockaddr_in6 *);
 void   in6_sin6_2_sin_in_sock(struct sockaddr *);
 void   in6_sin_2_v4mapsin6_in_sock(struct sockaddr **);
 



Home | Main Index | Thread Index | Old Index