Fix build of kernel with SCTP

This commit is contained in:
ozaki-r 2017-04-20 09:19:19 +00:00
parent 26079ea3f0
commit c5b713b4e3
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* $KAME: sctp_input.c,v 1.28 2005/04/21 18:36:21 nishida Exp $ */ /* $KAME: sctp_input.c,v 1.28 2005/04/21 18:36:21 nishida Exp $ */
/* $NetBSD: sctp_input.c,v 1.4 2017/04/20 08:46:07 ozaki-r Exp $ */ /* $NetBSD: sctp_input.c,v 1.5 2017/04/20 09:19:19 ozaki-r Exp $ */
/* /*
* Copyright (C) 2002, 2003, 2004 Cisco Systems Inc, * Copyright (C) 2002, 2003, 2004 Cisco Systems Inc,
@ -31,7 +31,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sctp_input.c,v 1.4 2017/04/20 08:46:07 ozaki-r Exp $"); __KERNEL_RCSID(0, "$NetBSD: sctp_input.c,v 1.5 2017/04/20 09:19:19 ozaki-r Exp $");
#ifdef _KERNEL_OPT #ifdef _KERNEL_OPT
#include "opt_ipsec.h" #include "opt_ipsec.h"
@ -4237,7 +4237,7 @@ sctp_input(struct mbuf *m, ...)
* I very much doubt any of the IPSEC stuff will work but I have * I very much doubt any of the IPSEC stuff will work but I have
* no idea, so I will leave it in place. * no idea, so I will leave it in place.
*/ */
if (ipsec_used && ipsec4_in_reject(m, inp)) { if (ipsec_used && ipsec4_in_reject(m, (struct inpcb *)inp)) {
#if 0 #if 0
ipsecstat.in_polvio++; ipsecstat.in_polvio++;
#endif #endif

View File

@ -1,5 +1,5 @@
/* $KAME: sctp6_usrreq.c,v 1.38 2005/08/24 08:08:56 suz Exp $ */ /* $KAME: sctp6_usrreq.c,v 1.38 2005/08/24 08:08:56 suz Exp $ */
/* $NetBSD: sctp6_usrreq.c,v 1.12 2017/04/20 08:46:07 ozaki-r Exp $ */ /* $NetBSD: sctp6_usrreq.c,v 1.13 2017/04/20 09:19:19 ozaki-r Exp $ */
/* /*
* Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc. * Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc.
@ -33,7 +33,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sctp6_usrreq.c,v 1.12 2017/04/20 08:46:07 ozaki-r Exp $"); __KERNEL_RCSID(0, "$NetBSD: sctp6_usrreq.c,v 1.13 2017/04/20 09:19:19 ozaki-r Exp $");
#ifdef _KERNEL_OPT #ifdef _KERNEL_OPT
#include "opt_inet.h" #include "opt_inet.h"
@ -235,7 +235,7 @@ sctp_skip_csum:
/* /*
* Check AH/ESP integrity. * Check AH/ESP integrity.
*/ */
if (ipsec_used && ipsec6_in_reject(m, in6p)) { if (ipsec_used && ipsec6_in_reject(m, (struct in6pcb *)in6p_ip)) {
/* XXX */ /* XXX */
#if 0 #if 0
/* FIX ME: need to find right stat */ /* FIX ME: need to find right stat */