mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Basic SLIP functionality -- but there are issues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3382 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -58,6 +58,12 @@
|
||||
* Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_SLIP
|
||||
# define NETDEV_FORMAT "sl%d"
|
||||
#else
|
||||
# define NETDEV_FORMAT "eth%d"
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Priviate Types
|
||||
****************************************************************************/
|
||||
@@ -134,7 +140,7 @@ int netdev_register(FAR struct uip_driver_s *dev)
|
||||
/* Assign a device name to the interface */
|
||||
|
||||
devnum = g_next_devnum++;
|
||||
snprintf( dev->d_ifname, IFNAMSIZ, "eth%d", devnum );
|
||||
snprintf( dev->d_ifname, IFNAMSIZ, NETDEV_FORMAT, devnum );
|
||||
|
||||
/* Add the device to the list of known network devices */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user