mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 06:35:01 +08:00
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:
@@ -50,6 +50,7 @@ net = on
|
|||||||
net80211 = off
|
net80211 = off
|
||||||
netinet = on
|
netinet = on
|
||||||
netinet6 = on
|
netinet6 = on
|
||||||
|
netipsec = off
|
||||||
opencrypto = on
|
opencrypto = on
|
||||||
pci = on
|
pci = on
|
||||||
pf = on
|
pf = on
|
||||||
|
@@ -13,3 +13,4 @@ dev_wlan_rtwn = on
|
|||||||
net80211 = on
|
net80211 = on
|
||||||
user_space_wlanstats = on
|
user_space_wlanstats = on
|
||||||
usr_sbin_wpa_supplicant = on
|
usr_sbin_wpa_supplicant = on
|
||||||
|
netipsec = on
|
||||||
|
@@ -174,7 +174,11 @@ ipsec_clone_create(struct if_clone *ifc, int unit, caddr_t params)
|
|||||||
struct ifnet *ifp;
|
struct ifnet *ifp;
|
||||||
|
|
||||||
sc = malloc(sizeof(*sc), M_IPSEC, M_WAITOK | M_ZERO);
|
sc = malloc(sizeof(*sc), M_IPSEC, M_WAITOK | M_ZERO);
|
||||||
|
#ifndef __rtems__
|
||||||
sc->fibnum = curthread->td_proc->p_fibnum;
|
sc->fibnum = curthread->td_proc->p_fibnum;
|
||||||
|
#else /* __rtems__ */
|
||||||
|
sc->fibnum = BSD_DEFAULT_FIB;
|
||||||
|
#endif /* __rtems__ */
|
||||||
sc->ifp = ifp = if_alloc(IFT_TUNNEL);
|
sc->ifp = ifp = if_alloc(IFT_TUNNEL);
|
||||||
IPSEC_LOCK_INIT(sc);
|
IPSEC_LOCK_INIT(sc);
|
||||||
ifp->if_softc = sc;
|
ifp->if_softc = sc;
|
||||||
|
@@ -1988,6 +1988,7 @@ class netipsec(builder.Module):
|
|||||||
mm = self.manager
|
mm = self.manager
|
||||||
self.addKernelSpaceHeaderFiles(
|
self.addKernelSpaceHeaderFiles(
|
||||||
[
|
[
|
||||||
|
'sys/net/if_ipsec.h',
|
||||||
'sys/netipsec/ah.h',
|
'sys/netipsec/ah.h',
|
||||||
'sys/netipsec/ah_var.h',
|
'sys/netipsec/ah_var.h',
|
||||||
'sys/netipsec/esp.h',
|
'sys/netipsec/esp.h',
|
||||||
@@ -2007,6 +2008,7 @@ class netipsec(builder.Module):
|
|||||||
)
|
)
|
||||||
self.addKernelSpaceSourceFiles(
|
self.addKernelSpaceSourceFiles(
|
||||||
[
|
[
|
||||||
|
'sys/net/if_ipsec.c',
|
||||||
'sys/netipsec/ipsec.c',
|
'sys/netipsec/ipsec.c',
|
||||||
'sys/netipsec/ipsec_input.c',
|
'sys/netipsec/ipsec_input.c',
|
||||||
'sys/netipsec/ipsec_mbuf.c',
|
'sys/netipsec/ipsec_mbuf.c',
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
#include <rtems/bsd/modules.h>
|
||||||
|
#ifdef RTEMS_BSD_MODULE_NETIPSEC
|
||||||
|
#define IPSEC 1
|
||||||
|
#define TCP_SIGNATURE 1
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user