Changeset View
Changeset View
Standalone View
Standalone View
sys/netipsec/ipsec_mod.c
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
#ifdef INET | #ifdef INET | ||||
static const struct ipsec_methods ipv4_methods = { | static const struct ipsec_methods ipv4_methods = { | ||||
.input = ipsec4_input, | .input = ipsec4_input, | ||||
.forward = ipsec4_forward, | .forward = ipsec4_forward, | ||||
.output = ipsec4_output, | .output = ipsec4_output, | ||||
.pcbctl = ipsec4_pcbctl, | .pcbctl = ipsec4_pcbctl, | ||||
.capability = ipsec4_capability, | .capability = ipsec4_capability, | ||||
.check_policy = ipsec4_in_reject, | .check_policy = ipsec4_in_reject, | ||||
.ctlinput = ipsec4_ctlinput, | |||||
.hdrsize = ipsec_hdrsiz_inpcb, | .hdrsize = ipsec_hdrsiz_inpcb, | ||||
.udp_input = udp_ipsec_input, | .udp_input = udp_ipsec_input, | ||||
.udp_pcbctl = udp_ipsec_pcbctl, | .udp_pcbctl = udp_ipsec_pcbctl, | ||||
}; | }; | ||||
#ifndef KLD_MODULE | #ifndef KLD_MODULE | ||||
static const struct ipsec_support ipv4_ipsec = { | static const struct ipsec_support ipv4_ipsec = { | ||||
.enabled = IPSEC_MODULE_ENABLED, | .enabled = IPSEC_MODULE_ENABLED, | ||||
.methods = &ipv4_methods | .methods = &ipv4_methods | ||||
}; | }; | ||||
const struct ipsec_support * const ipv4_ipsec_support = &ipv4_ipsec; | const struct ipsec_support * const ipv4_ipsec_support = &ipv4_ipsec; | ||||
#endif /* !KLD_MODULE */ | #endif /* !KLD_MODULE */ | ||||
#endif /* INET */ | #endif /* INET */ | ||||
#ifdef INET6 | #ifdef INET6 | ||||
static const struct ipsec_methods ipv6_methods = { | static const struct ipsec_methods ipv6_methods = { | ||||
.input = ipsec6_input, | .input = ipsec6_input, | ||||
.forward = ipsec6_forward, | .forward = ipsec6_forward, | ||||
.output = ipsec6_output, | .output = ipsec6_output, | ||||
.pcbctl = ipsec6_pcbctl, | .pcbctl = ipsec6_pcbctl, | ||||
.capability = ipsec6_capability, | .capability = ipsec6_capability, | ||||
.check_policy = ipsec6_in_reject, | .check_policy = ipsec6_in_reject, | ||||
.ctlinput = ipsec6_ctlinput, | |||||
.hdrsize = ipsec_hdrsiz_inpcb, | .hdrsize = ipsec_hdrsiz_inpcb, | ||||
}; | }; | ||||
#ifndef KLD_MODULE | #ifndef KLD_MODULE | ||||
static const struct ipsec_support ipv6_ipsec = { | static const struct ipsec_support ipv6_ipsec = { | ||||
.enabled = IPSEC_MODULE_ENABLED, | .enabled = IPSEC_MODULE_ENABLED, | ||||
.methods = &ipv6_methods | .methods = &ipv6_methods | ||||
}; | }; | ||||
const struct ipsec_support * const ipv6_ipsec_support = &ipv6_ipsec; | const struct ipsec_support * const ipv6_ipsec_support = &ipv6_ipsec; | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |