[rtems-libbsd commit] The BPF dev node needs a minor number for tcpdump.

Chris Johns chrisj at rtems.org
Tue Jun 16 03:21:14 UTC 2015


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Jun 16 13:17:19 2015 +1000

The BPF dev node needs a minor number for tcpdump.

---

 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 7a4eaf9..1f9430b 100644
--- a/freebsd/sys/net/bpf.c
+++ b/freebsd/sys/net/bpf.c
@@ -3005,7 +3005,7 @@ bpf_drvinit(void *unused)
 	/* For compatibility */
 	make_dev_alias(dev, "bpf0");
 #else /* __rtems__ */
-	rv = IMFS_make_generic_node("/dev/bpf", mode, &bpf_imfs_control, NULL);
+	rv = IMFS_make_generic_node("/dev/bpf0", mode, &bpf_imfs_control, NULL);
 	BSD_ASSERT(rv == 0);
 #endif /* __rtems__ */
 



More information about the vc mailing list