mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-26 14:12:44 +08:00
Supply /dev/bpf and /dev/bpf0. Both are needed.
This commit is contained in:
parent
98d7c3c015
commit
54409c7f6e
@ -3005,7 +3005,9 @@ bpf_drvinit(void *unused)
|
|||||||
/* For compatibility */
|
/* For compatibility */
|
||||||
make_dev_alias(dev, "bpf0");
|
make_dev_alias(dev, "bpf0");
|
||||||
#else /* __rtems__ */
|
#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);
|
BSD_ASSERT(rv == 0);
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user