Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_syncache.c
Context not available. | |||||
#include "opt_pcbgroup.h" | #include "opt_pcbgroup.h" | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#ifdef IPSEC | |||||
#include <sys/eventhandler.h> | |||||
#endif | |||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
Context not available. | |||||
#include <netinet/toecore.h> | #include <netinet/toecore.h> | ||||
#endif | #endif | ||||
#ifdef IPSEC | |||||
#include <netipsec/ipsec.h> | |||||
#ifdef INET6 | |||||
#include <netipsec/ipsec6.h> | |||||
#endif | |||||
#include <netipsec/key.h> | |||||
#endif /*IPSEC*/ | |||||
#include <machine/in_cksum.h> | #include <machine/in_cksum.h> | ||||
#include <security/mac/mac_framework.h> | #include <security/mac/mac_framework.h> | ||||
Context not available. | |||||
INP_HASH_WUNLOCK(&V_tcbinfo); | INP_HASH_WUNLOCK(&V_tcbinfo); | ||||
goto abort; | goto abort; | ||||
} | } | ||||
#ifdef IPSEC | #ifdef IPSEC | ||||
/* Copy old policy into new socket's. */ | if (sotoinpcb(lso)->inp_sp != NULL) | ||||
if (ipsec_copy_policy(sotoinpcb(lso)->inp_sp, inp->inp_sp)) | EVENTHANDLER_INVOKE(tcp_syncache_newconn, sotoinpcb(lso), inp); | ||||
printf("syncache_socket: could not copy policy\n"); | |||||
#endif | #endif | ||||
#ifdef INET6 | #ifdef INET6 | ||||
if (sc->sc_inc.inc_flags & INC_ISIPV6) { | if (sc->sc_inc.inc_flags & INC_ISIPV6) { | ||||
struct inpcb *oinp = sotoinpcb(lso); | struct inpcb *oinp = sotoinpcb(lso); | ||||
Context not available. |