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:
patacongo
2011-03-15 01:54:49 +00:00
parent 77e3f14232
commit 53c68bf74e
6 changed files with 36 additions and 27 deletions
+7 -1
View File
@@ -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 */