Skip to content

Commit

Permalink
Merge pull request #1082 from pawosm-arm/dev-eth
Browse files Browse the repository at this point in the history
netd: fix /dev/eth colliding with later introduced /dev/rd0
  • Loading branch information
EtchedPixels authored Aug 28, 2024
2 parents 26bf849 + 6a902ce commit 9621bc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 9621bc2

Please sign in to comment.