[rtems-libbsd commit] Supply /dev/bpf and /dev/bpf0. Both are needed.

Chris Johns chrisj at rtems.org
Fri Jun 19 05:25:12 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    54409c7f6e02740d0776533f3b9b5f6d0a0f71e6
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=54409c7f6e02740d0776533f3b9b5f6d0a0f71e6

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Jun 19 15:25:06 2015 +1000

Supply /dev/bpf and /dev/bpf0. Both are needed.

---

 freebsd/sys/net/bpf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c
index 1f9430b..6a6778b 100644
--- a/freebsd/sys/net/bpf.c
+++ b/freebsd/sys/net/bpf.c
@@ -3005,7 +3005,9 @@ bpf_drvinit(void *unused)
 	/* For compatibility */
 	make_dev_alias(dev, "bpf0");
 #else /* __rtems__ */
-	rv = IMFS_make_generic_node("/dev/bpf0", mode, &bpf_imfs_control, NULL);
+	rv = IMFS_make_generic_node("/dev/bpf", mode, &bpf_imfs_control, NULL);
+	BSD_ASSERT(rv == 0);
+  rv = symlink("/dev/bpf", "/dev/bpf0");
 	BSD_ASSERT(rv == 0);
 #endif /* __rtems__ */
 



More information about the vc mailing list