Unix domain: With these changes I can build a system with no link layer enabled, only Unix domain sockets
This commit is contained in:
parent
ac637db8fc
commit
20190a89f7
|
@ -154,6 +154,22 @@
|
||||||
# define CONFIG_NSH_NETINIT_THREAD_PRIORITY 100
|
# define CONFIG_NSH_NETINIT_THREAD_PRIORITY 100
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Some networking commands do not make sense unless there is a network
|
||||||
|
* device. There might not be a network device if, for example, only Unix
|
||||||
|
* domain sockets were enable.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if !defined(CONFIG_NET_ETHERNET) && !defined(CONFIG_NET_SLIP)
|
||||||
|
/* No link layer protocol is a good indication that there is no network
|
||||||
|
* device.
|
||||||
|
*/
|
||||||
|
|
||||||
|
# undef CONFIG_NSH_DISABLE_IFUPDOWN
|
||||||
|
# undef CONFIG_NSH_DISABLE_IFCONFIG
|
||||||
|
# define CONFIG_NSH_DISABLE_IFUPDOWN 1
|
||||||
|
# define CONFIG_NSH_DISABLE_IFCONFIG 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Telnetd requires networking support */
|
/* Telnetd requires networking support */
|
||||||
|
|
||||||
#ifndef CONFIG_NET
|
#ifndef CONFIG_NET
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
#if defined(CONFIG_NET_SLIP)
|
#if defined(CONFIG_NET_SLIP)
|
||||||
# define NETDEV_DEFAULT_FORMAT NETDEV_SLIP_FORMAT
|
# define NETDEV_DEFAULT_FORMAT NETDEV_SLIP_FORMAT
|
||||||
#else /* `if defined(CONFIG_NET_ETHERNET) */
|
#else /* if defined(CONFIG_NET_ETHERNET) */
|
||||||
# define NETDEV_DEFAULT_FORMAT NETDEV_ETH_FORMAT
|
# define NETDEV_DEFAULT_FORMAT NETDEV_ETH_FORMAT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue