[rtems-libbsd commit] pf_ioctl.c: Disable superfluous unload support
Sebastian Huber
sebh at rtems.org
Tue Aug 27 08:30:42 UTC 2019
Module: rtems-libbsd
Branch: 5-freebsd-12
Commit: f2124b600b9b0bfea5dc8b22daa62c887b93976b
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=f2124b600b9b0bfea5dc8b22daa62c887b93976b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Aug 27 10:06:53 2019 +0200
pf_ioctl.c: Disable superfluous unload support
---
freebsd/sys/netpfil/pf/pf_ioctl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/freebsd/sys/netpfil/pf/pf_ioctl.c b/freebsd/sys/netpfil/pf/pf_ioctl.c
index 855ef69..0c4c412 100644
--- a/freebsd/sys/netpfil/pf/pf_ioctl.c
+++ b/freebsd/sys/netpfil/pf/pf_ioctl.c
@@ -4361,6 +4361,7 @@ pf_load(void)
return (0);
}
+#ifndef __rtems__
static void
pf_unload_vnet(void)
{
@@ -4417,6 +4418,7 @@ pf_unload_vnet(void)
for (int i = 0; i < SCNT_MAX; i++)
counter_u64_free(V_pf_status.scounters[i]);
}
+#endif /* __rtems__ */
static void
pf_unload(void)
@@ -4449,6 +4451,7 @@ vnet_pf_init(void *unused __unused)
VNET_SYSINIT(vnet_pf_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD,
vnet_pf_init, NULL);
+#ifndef __rtems__
static void
vnet_pf_uninit(const void *unused __unused)
{
@@ -4458,6 +4461,7 @@ vnet_pf_uninit(const void *unused __unused)
SYSUNINIT(pf_unload, SI_SUB_PROTO_FIREWALL, SI_ORDER_SECOND, pf_unload, NULL);
VNET_SYSUNINIT(vnet_pf_uninit, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD,
vnet_pf_uninit, NULL);
+#endif /* __rtems__ */
static int
More information about the vc
mailing list