diff options
author | rrs <rrs@FreeBSD.org> | 2009-01-06 12:13:40 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2009-01-06 12:13:40 +0000 |
commit | 8bff422255e003d595b727bcf2832648dfad012a (patch) | |
tree | cad2ca9862c1a23be9a4b0173dc9c2fc8924165a /sys/netinet/udp_var.h | |
parent | df83de35ebaea44832c83fe1de66ab651752d270 (diff) | |
download | FreeBSD-src-8bff422255e003d595b727bcf2832648dfad012a.zip FreeBSD-src-8bff422255e003d595b727bcf2832648dfad012a.tar.gz |
Add the ability of an alternate transport protocol
to easily tunnel over udp by providing a hook
function that will be called instead of appending
to the socket buffer.
Diffstat (limited to 'sys/netinet/udp_var.h')
-rw-r--r-- | sys/netinet/udp_var.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 39805ed..76a31b8 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -110,6 +110,10 @@ void udp_init(void); void udp_input(struct mbuf *, int); struct inpcb *udp_notify(struct inpcb *inp, int errno); int udp_shutdown(struct socket *so); + + +typedef void(*udp_tun_func_t)(struct mbuf *, int off, struct inpcb *); +int udp_set_kernel_tunneling(struct socket *so, udp_tun_func_t f); #endif #endif |