pf: Some fixes after the update

This commit is contained in:
Sebastian Huber 2017-01-10 14:41:23 +01:00
parent 774f19f24c
commit 9e8ce9ae2e
4 changed files with 7 additions and 1 deletions

View File

@ -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 $ */

View File

@ -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 $ */

View File

@ -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

View File

@ -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