[rtems-libbsd commit] BPF(9): Pass flags to bpfopen()
    Sebastian Huber 
    sebh at rtems.org
       
    Wed Jul  4 05:20:49 UTC 2018
    
    
  
Module:    rtems-libbsd
Branch:    master
Commit:    e6f6b5e619ab741327db656fe16ca1765c43817d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e6f6b5e619ab741327db656fe16ca1765c43817d
Author:    Nicolas Tsiogkas <lou.nick at gmail.com>
Date:      Wed Jul  4 07:19:01 2018 +0200
BPF(9): Pass flags to bpfopen()
---
 freebsd/sys/net/bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c
index 259a253..d7a2abf 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) {
    
    
More information about the vc
mailing list