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:
parent
a2c0068011
commit
79aa3d40b0
@ -193,7 +193,7 @@ static int lo_txpoll(FAR struct net_driver_s *dev)
|
||||
else
|
||||
#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;
|
||||
}
|
||||
}
|
||||
|
12
net/Kconfig
12
net/Kconfig
@ -156,8 +156,8 @@ config NET_ETHERNET
|
||||
bool "Ethernet support"
|
||||
default y if !NET_SLIP
|
||||
default n if NET_SLIP
|
||||
select NETDEV_MULTINIC if NET_SLIP
|
||||
select NET_MULTILINK if NET_SLIP
|
||||
select NETDEV_MULTINIC if NET_LOOPBACK || NET_SLIP || NET_TUN
|
||||
select NET_MULTILINK if NET_LOOPBACK || NET_SLIP || NET_TUN
|
||||
---help---
|
||||
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
|
||||
@ -166,6 +166,8 @@ config NET_ETHERNET
|
||||
config NET_LOOPBACK
|
||||
bool "Local loopback"
|
||||
default n
|
||||
select NETDEV_MULTINIC if NET_ETHERNET || NET_SLIP || NET_TUN
|
||||
select NET_MULTILINK if NET_ETHERNET || NET_SLIP || NET_TUN
|
||||
---help---
|
||||
Add support for the local network loopback device, lo. Any additional
|
||||
networking devices that are enabled must be compatible with
|
||||
@ -174,8 +176,8 @@ config NET_LOOPBACK
|
||||
config NET_SLIP
|
||||
bool "SLIP support"
|
||||
default n
|
||||
select NETDEV_MULTINIC if NET_ETHERNET
|
||||
select NET_MULTILINK if NET_ETHERNET
|
||||
select NETDEV_MULTINIC if NET_ETHERNET || NET_LOOPBACK || NET_TUN
|
||||
select NET_MULTILINK if NET_ETHERNET || NET_LOOPBACK || NET_TUN
|
||||
---help---
|
||||
Enables building of the SLIP driver. SLIP requires
|
||||
at least one IP protocol selected and the following additional
|
||||
@ -222,6 +224,8 @@ endif # NET_SLIP
|
||||
config NET_TUN
|
||||
bool "TUN Virtual Network Device support"
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user