Skip to content

netd: fix /dev/eth colliding with later introduced /dev/rd0 #1082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Applications/netd/fuzix-netd.pkg
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ f 0755 /usr/bin/netd-slip netd-slip
package netd-eth
if-file netd-eth
f 0755 /usr/bin/netd-eth netd-eth
n 020666 2048 /dev/eth
n 020666 2304 /dev/eth
5 changes: 3 additions & 2 deletions Kernel/platform/platform-tm4c129x/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ struct devsw dev_tab[] = /* The device driver switch table */
/* 4: /dev/mem etc - System devices (one offs) */
{ no_open, no_close, sys_read, sys_write, sys_ioctl },
#ifdef CONFIG_NET
/* Pack to 7 with nxio if adding private devices and start at 8 */
/* Pack to 8 with nxio if adding private devices and start at 9 */
{ nxio_open, no_close, no_rdwr, no_rdwr, no_ioctl },
{ nxio_open, no_close, no_rdwr, no_rdwr, no_ioctl },
{ nxio_open, no_close, no_rdwr, no_rdwr, no_ioctl },
/* 8: /dev/eth ethernet device raw access */
{ nxio_open, no_close, no_rdwr, no_rdwr, no_ioctl },
/* 9: /dev/eth ethernet device raw access */
{ eth_open, eth_close, eth_read, eth_write, eth_ioctl },
#endif
};
Expand Down
Loading