diff options
author | Martin Varghese <martin.varghese@nokia.com> | 2020-02-24 06:27:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 22:31:42 +0100 |
commit | 571912c69f0ed731bd1e071ade9dc7ca4aa52065 (patch) | |
tree | 319a2ff693104702ebfc44cbf22cbfebc5000fba /include/net/bareudp.h | |
parent | af_unix: Add missing annotation for unix_wait_for_peer() (diff) | |
download | linux-571912c69f0ed731bd1e071ade9dc7ca4aa52065.tar.xz linux-571912c69f0ed731bd1e071ade9dc7ca4aa52065.zip |
net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.
The Bareudp tunnel module provides a generic L3 encapsulation
tunnelling module for tunnelling different protocols like MPLS,
IP,NSH etc inside a UDP tunnel.
Signed-off-by: Martin Varghese <martin.varghese@nokia.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/bareudp.h')
-rw-r--r-- | include/net/bareudp.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/net/bareudp.h b/include/net/bareudp.h new file mode 100644 index 000000000000..513fae6f6ba1 --- /dev/null +++ b/include/net/bareudp.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __NET_BAREUDP_H +#define __NET_BAREUDP_H + +#include <linux/types.h> +#include <linux/skbuff.h> + +struct bareudp_conf { + __be16 ethertype; + __be16 port; + u16 sport_min; +}; + +struct net_device *bareudp_dev_create(struct net *net, const char *name, + u8 name_assign_type, + struct bareudp_conf *info); + +#endif |