summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-10 14:41:23 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-10 14:41:23 +0100
commit9e8ce9ae2e3a9879418cf4dab886d2c22998a9e5 (patch)
tree7a4625e06061193e9221af3123f8c880c27300ea
parentdevfs: Fix typo (diff)
downloadrtems-libbsd-9e8ce9ae2e3a9879418cf4dab886d2c22998a9e5.tar.bz2
pf: Some fixes after the update
-rw-r--r--freebsd/sbin/pfctl/pfctl.c1
-rw-r--r--freebsd/sbin/pfctl/pfctl_parser.c2
-rw-r--r--freebsd/sbin/pfctl/rtems-bsd-pfctl-namespace.h2
-rw-r--r--testsuite/pf01/test_main.c3
4 files changed, 7 insertions, 1 deletions
diff --git a/freebsd/sbin/pfctl/pfctl.c b/freebsd/sbin/pfctl/pfctl.c
index f9efa090..fb22a5d4 100644
--- a/freebsd/sbin/pfctl/pfctl.c
+++ b/freebsd/sbin/pfctl/pfctl.c
@@ -2,6 +2,7 @@
#ifdef __rtems__
#include "rtems-bsd-pfctl-namespace.h"
+#define ENABLE_ALTQ
#endif /* __rtems__ */
/* $OpenBSD: pfctl.c,v 1.278 2008/08/31 20:18:17 jmc Exp $ */
diff --git a/freebsd/sbin/pfctl/pfctl_parser.c b/freebsd/sbin/pfctl/pfctl_parser.c
index cb49dc2a..917980ae 100644
--- a/freebsd/sbin/pfctl/pfctl_parser.c
+++ b/freebsd/sbin/pfctl/pfctl_parser.c
@@ -2,6 +2,8 @@
#ifdef __rtems__
#include "rtems-bsd-pfctl-namespace.h"
+#define WITH_INET6
+#define WITH_INET
#endif /* __rtems__ */
/* $OpenBSD: pfctl_parser.c,v 1.240 2008/06/10 20:55:02 mcbride Exp $ */
diff --git a/freebsd/sbin/pfctl/rtems-bsd-pfctl-namespace.h b/freebsd/sbin/pfctl/rtems-bsd-pfctl-namespace.h
index 4e815fee..e1672e97 100644
--- a/freebsd/sbin/pfctl/rtems-bsd-pfctl-namespace.h
+++ b/freebsd/sbin/pfctl/rtems-bsd-pfctl-namespace.h
@@ -8,6 +8,8 @@
#define pfctlylval _bsd_pfctl_pfctlylval
#define pfctlyparse _bsd_pfctl_pfctlyparse
#define rt_tableid_max _bsd_pfctl_rt_tableid_max
+#define map_tos _bsd_pfctl_map_tos
+#define kw_casecmp _bsd_pfctl_kw_casecmp
#define pfctl_load_anchors _bsd_pfctl_pfctl_load_anchors
#define parseport _bsd_pfctl_parseport
#define parseicmpspec _bsd_pfctl_parseicmpspec
diff --git a/testsuite/pf01/test_main.c b/testsuite/pf01/test_main.c
index 4f70316c..51c88392 100644
--- a/testsuite/pf01/test_main.c
+++ b/testsuite/pf01/test_main.c
@@ -377,7 +377,8 @@ run_pfctl(int argc, char *argv[], int expected_result)
snapshot2.workspace_info.Free.largest = 0;
snapshot.heap_info.Free.largest = 0;
snapshot2.heap_info.Free.largest = 0;
- assert(rtems_resource_snapshot_equal(&snapshot, &snapshot2));
+ assert(exit_code == EXIT_SUCCESS ||
+ rtems_resource_snapshot_equal(&snapshot, &snapshot2));
}
static void