summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-06-07 08:46:25 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-06-07 08:46:25 +0000
commita7c5bcbdd9a68092d875d5494df48a5398d735be (patch)
tree304e2b8789a9d3c7891e7d05cb4a362eaa63c723 /sys/netinet6
parent199d2eb4f1d1f0d1c8ea83e29f2700e38e694096 (diff)
The global zero addresses must not change, mark them constant.
OK tb@ visa@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.h4
-rw-r--r--sys/netinet6/in6_pcb.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 337f48738cf..8381ba54f59 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.101 2018/02/10 05:52:08 florian Exp $ */
+/* $OpenBSD: in6.h,v 1.102 2018/06/07 08:46:24 bluhm Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -405,7 +405,7 @@ typedef __socklen_t socklen_t; /* length type for network syscalls */
#ifdef _KERNEL
extern const u_char inet6ctlerrmap[];
-extern struct in6_addr zeroin6_addr;
+extern const struct in6_addr zeroin6_addr;
struct mbuf;
struct ifnet;
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 172af315416..523237f624e 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_pcb.c,v 1.102 2018/06/03 21:32:32 bluhm Exp $ */
+/* $OpenBSD: in6_pcb.c,v 1.103 2018/06/07 08:46:24 bluhm Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -132,7 +132,7 @@
* Globals
*/
-struct in6_addr zeroin6_addr;
+const struct in6_addr zeroin6_addr;
/*
* Keep separate inet6ctlerrmap, because I may remap some of these.