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:
parent
3d34c5f4b7
commit
36be096c43
17 changed files with 1129 additions and 2 deletions
|
@ -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 */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue