mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
In all up_initialize() functions, automatically initialize TUN driver is so configureded
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
#include <nuttx/net/loopback.h>
|
||||
#include <nuttx/net/tun.h>
|
||||
#include <nuttx/mtd/mtd.h>
|
||||
#include <nuttx/syslog/ramlog.h>
|
||||
#include <nuttx/syslog/syslog_console.h>
|
||||
@@ -172,6 +173,12 @@ void up_initialize(void)
|
||||
(void)localhost_initialize();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET_TUN
|
||||
/* Initialize the TUN device */
|
||||
|
||||
(void)tun_initialize();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_FS_SMARTFS) && defined(CONFIG_SIM_SPIFLASH)
|
||||
up_init_smartfs();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user