Kconfig: CONFIG_NET_MULTILINK and CONFIG_NET_MULTINIC must be support if the loopback device and any real network device are selected

This commit is contained in:
Gregory Nutt 2015-08-25 06:51:15 -06:00
parent a2c0068011
commit 79aa3d40b0
2 changed files with 9 additions and 5 deletions

View File

@ -193,7 +193,7 @@ static int lo_txpoll(FAR struct net_driver_s *dev)
else else
#endif #endif
{ {
ndbg("WARNING: Unrecognized packet type dropped: %04x\n", IPv4BUF->type); ndbg("WARNING: Unrecognized packet type dropped: %02x\n", IPv4BUF->vhl);
priv->lo_dev.d_len = 0; priv->lo_dev.d_len = 0;
} }
} }

View File

@ -156,8 +156,8 @@ config NET_ETHERNET
bool "Ethernet support" bool "Ethernet support"
default y if !NET_SLIP default y if !NET_SLIP
default n if NET_SLIP default n if NET_SLIP
select NETDEV_MULTINIC if NET_SLIP select NETDEV_MULTINIC if NET_LOOPBACK || NET_SLIP || NET_TUN
select NET_MULTILINK if NET_SLIP select NET_MULTILINK if NET_LOOPBACK || NET_SLIP || NET_TUN
---help--- ---help---
If NET_SLIP is not selected, then Ethernet will be used (there is If NET_SLIP is not selected, then Ethernet will be used (there is
no need to define anything special in the configuration file to use no need to define anything special in the configuration file to use
@ -166,6 +166,8 @@ config NET_ETHERNET
config NET_LOOPBACK config NET_LOOPBACK
bool "Local loopback" bool "Local loopback"
default n default n
select NETDEV_MULTINIC if NET_ETHERNET || NET_SLIP || NET_TUN
select NET_MULTILINK if NET_ETHERNET || NET_SLIP || NET_TUN
---help--- ---help---
Add support for the local network loopback device, lo. Any additional Add support for the local network loopback device, lo. Any additional
networking devices that are enabled must be compatible with networking devices that are enabled must be compatible with
@ -174,8 +176,8 @@ config NET_LOOPBACK
config NET_SLIP config NET_SLIP
bool "SLIP support" bool "SLIP support"
default n default n
select NETDEV_MULTINIC if NET_ETHERNET select NETDEV_MULTINIC if NET_ETHERNET || NET_LOOPBACK || NET_TUN
select NET_MULTILINK if NET_ETHERNET select NET_MULTILINK if NET_ETHERNET || NET_LOOPBACK || NET_TUN
---help--- ---help---
Enables building of the SLIP driver. SLIP requires Enables building of the SLIP driver. SLIP requires
at least one IP protocol selected and the following additional at least one IP protocol selected and the following additional
@ -222,6 +224,8 @@ endif # NET_SLIP
config NET_TUN config NET_TUN
bool "TUN Virtual Network Device support" bool "TUN Virtual Network Device support"
default n default n
select NETDEV_MULTINIC if NET_ETHERNET || NET_LOOPBACK || NET_SLIP
select NET_MULTILINK if NET_ETHERNET || NET_LOOPBACK || NET_SLIP
if NET_TUN if NET_TUN