if_ipsec: Port and add to everything-buildset.

This ports the kernel space parts for ipsec and adds them to the
everything-buildset.
This commit is contained in:
Christian Mauderer
2018-04-27 14:57:20 +02:00
parent 09bbedcb65
commit 6215813e04
5 changed files with 13 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ net = on
net80211 = off
netinet = on
netinet6 = on
netipsec = off
opencrypto = on
pci = on
pf = on

View File

@@ -13,3 +13,4 @@ dev_wlan_rtwn = on
net80211 = on
user_space_wlanstats = on
usr_sbin_wpa_supplicant = on
netipsec = on

View File

@@ -174,7 +174,11 @@ ipsec_clone_create(struct if_clone *ifc, int unit, caddr_t params)
struct ifnet *ifp;
sc = malloc(sizeof(*sc), M_IPSEC, M_WAITOK | M_ZERO);
#ifndef __rtems__
sc->fibnum = curthread->td_proc->p_fibnum;
#else /* __rtems__ */
sc->fibnum = BSD_DEFAULT_FIB;
#endif /* __rtems__ */
sc->ifp = ifp = if_alloc(IFT_TUNNEL);
IPSEC_LOCK_INIT(sc);
ifp->if_softc = sc;

View File

@@ -1988,6 +1988,7 @@ class netipsec(builder.Module):
mm = self.manager
self.addKernelSpaceHeaderFiles(
[
'sys/net/if_ipsec.h',
'sys/netipsec/ah.h',
'sys/netipsec/ah_var.h',
'sys/netipsec/esp.h',
@@ -2007,6 +2008,7 @@ class netipsec(builder.Module):
)
self.addKernelSpaceSourceFiles(
[
'sys/net/if_ipsec.c',
'sys/netipsec/ipsec.c',
'sys/netipsec/ipsec_input.c',
'sys/netipsec/ipsec_mbuf.c',

View File

@@ -0,0 +1,5 @@
#include <rtems/bsd/modules.h>
#ifdef RTEMS_BSD_MODULE_NETIPSEC
#define IPSEC 1
#define TCP_SIGNATURE 1
#endif