diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index fb208ad259d..5e2a12d1e38 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -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; } } diff --git a/net/Kconfig b/net/Kconfig index 235eb9a5794..f7e5f67cfa6 100644 --- a/net/Kconfig +++ b/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