udp-tunnel: Add a few more UDP tunnel APIs
authorAndy Zhou <azhou@nicira.com>
Wed, 17 Sep 2014 00:31:17 +0000 (17:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 19:57:15 +0000 (15:57 -0400)
commit6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d
tree4855feb2fa46451d755bf841a3e463ba2a8053a0
parentfd384412e199b62c3ddaabd18dce86d0e164c5b9
udp-tunnel: Add a few more UDP tunnel APIs

Added a few more UDP tunnel APIs that can be shared by UDP based
tunnel protocol implementation. The main ones are highlighted below.

setup_udp_tunnel_sock() configures UDP listener socket for
receiving UDP encapsulated packets.

udp_tunnel_xmit_skb() and upd_tunnel6_xmit_skb() transmit skb
using UDP encapsulation.

udp_tunnel_sock_release() closes the UDP tunnel listener socket.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp_tunnel.h
net/ipv4/udp_tunnel.c
net/ipv6/ip6_udp_tunnel.c