summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Tsiogkas <lou.nick@gmail.com>2018-07-04 07:19:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-04 07:20:37 +0200
commite6f6b5e619ab741327db656fe16ca1765c43817d (patch)
tree93f2a2fab068656ecbd3812fc3e1330c0b47316c
parentsyscalls01: Fix sporadic test failures (diff)
downloadrtems-libbsd-e6f6b5e619ab741327db656fe16ca1765c43817d.tar.bz2
BPF(9): Pass flags to bpfopen()
-rw-r--r--freebsd/sys/net/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c
index 259a2532..d7a2abf7 100644
--- a/freebsd/sys/net/bpf.c
+++ b/freebsd/sys/net/bpf.c
@@ -2907,7 +2907,7 @@ bpf_imfs_open(rtems_libio_t *iop, const char *path, int oflag, mode_t mode)
{
struct bpf_d *d;
- d = bpfopen(NULL, 0, 0, NULL);
+ d = bpfopen(NULL, oflag + 1, 0, NULL);
iop->data1 = d;
if (d != NULL) {