net: virtual: Add virtual network interface support

This can be used to implement tunneling, VPN etc. The virtual
interfaces can be chained together to support multilayer
network interfaces.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2021-02-22 17:51:25 +02:00 committed by Anas Nashif
commit 36be096c43
17 changed files with 1129 additions and 2 deletions

View file

@ -381,6 +381,14 @@ struct net_if_config {
#if defined(CONFIG_NET_IPV4_AUTO) && defined(CONFIG_NET_NATIVE_IPV4)
struct net_if_ipv4_autoconf ipv4auto;
#endif /* CONFIG_NET_IPV4_AUTO */
#if defined(CONFIG_NET_L2_VIRTUAL)
/**
* This list keeps track of the virtual network interfaces
* that are attached to this network interface.
*/
sys_slist_t virtual_interfaces;
#endif /* CONFIG_NET_L2_VIRTUAL */
};
/**