Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Fix build w/ SCTP and w/o SCTP_DEBUG
details: https://anonhg.NetBSD.org/src/rev/abaf9c18dfd6
branches: trunk
changeset: 820964:abaf9c18dfd6
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jan 17 01:24:44 2017 +0000
description:
Fix build w/ SCTP and w/o SCTP_DEBUG
diffstat:
sys/netinet/sctp_asconf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 63cbb9bea874 -r abaf9c18dfd6 sys/netinet/sctp_asconf.c
--- a/sys/netinet/sctp_asconf.c Mon Jan 16 23:22:19 2017 +0000
+++ b/sys/netinet/sctp_asconf.c Tue Jan 17 01:24:44 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sctp_asconf.c,v 1.9 2017/01/16 15:44:47 christos Exp $ */
+/* $NetBSD: sctp_asconf.c,v 1.10 2017/01/17 01:24:44 ozaki-r Exp $ */
/* $KAME: sctp_asconf.c,v 1.25 2005/06/16 20:44:24 jinmei Exp $ */
/*
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctp_asconf.c,v 1.9 2017/01/16 15:44:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctp_asconf.c,v 1.10 2017/01/17 01:24:44 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -1667,7 +1667,9 @@
* note: this would leave the address on both inp and asoc lists
*/
if (ifa->ifa_addr->sa_family == AF_INET6) {
+#ifdef SCTP_DEBUG
char ip6buf[INET6_ADDRSTRLEN];
+#endif /* SCTP_DEBUG */
struct sockaddr_in6 *sin6;
sin6 = (struct sockaddr_in6 *)ifa->ifa_addr;
Home |
Main Index |
Thread Index |
Old Index