mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
sys/netipsec: fix IPSEC_SUPPORT for non-INET kernels
The functions ipsec_kmod_udp_input() and ipsec_kmod_udp_pcbctl() are used by netinet6 for IPSEC_SUPPORT, but are guarded behind #ifdef INET. Since neither of these require INET, remove the guard so they're built even without INET. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1158
This commit is contained in:
parent
737799dfd3
commit
122dd78c14
|
@ -328,6 +328,15 @@ static struct ipsec_support ipv4_ipsec = {
|
||||||
.methods = NULL
|
.methods = NULL
|
||||||
};
|
};
|
||||||
struct ipsec_support * const ipv4_ipsec_support = &ipv4_ipsec;
|
struct ipsec_support * const ipv4_ipsec_support = &ipv4_ipsec;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef INET6
|
||||||
|
static struct ipsec_support ipv6_ipsec = {
|
||||||
|
.enabled = 0,
|
||||||
|
.methods = NULL
|
||||||
|
};
|
||||||
|
struct ipsec_support * const ipv6_ipsec_support = &ipv6_ipsec;
|
||||||
|
#endif
|
||||||
|
|
||||||
IPSEC_KMOD_METHOD(int, ipsec_kmod_udp_input, sc,
|
IPSEC_KMOD_METHOD(int, ipsec_kmod_udp_input, sc,
|
||||||
udp_input, METHOD_DECL(struct ipsec_support * const sc, struct mbuf *m,
|
udp_input, METHOD_DECL(struct ipsec_support * const sc, struct mbuf *m,
|
||||||
|
@ -338,15 +347,6 @@ IPSEC_KMOD_METHOD(int, ipsec_kmod_udp_pcbctl, sc,
|
||||||
udp_pcbctl, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp,
|
udp_pcbctl, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp,
|
||||||
struct sockopt *sopt), METHOD_ARGS(inp, sopt)
|
struct sockopt *sopt), METHOD_ARGS(inp, sopt)
|
||||||
)
|
)
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef INET6
|
|
||||||
static struct ipsec_support ipv6_ipsec = {
|
|
||||||
.enabled = 0,
|
|
||||||
.methods = NULL
|
|
||||||
};
|
|
||||||
struct ipsec_support * const ipv6_ipsec_support = &ipv6_ipsec;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
IPSEC_KMOD_METHOD(int, ipsec_kmod_input, sc,
|
IPSEC_KMOD_METHOD(int, ipsec_kmod_input, sc,
|
||||||
input, METHOD_DECL(struct ipsec_support * const sc, struct mbuf *m,
|
input, METHOD_DECL(struct ipsec_support * const sc, struct mbuf *m,
|
||||||
|
|
Loading…
Reference in a new issue