user-mode tinc?

David Nicol davidnicol at gmail.com
Wed Oct 20 20:31:47 CEST 2004


On Wed, 20 Oct 2004 18:13:00 +0200, Guus Sliepen <guus at sliepen.eu.org> wrote:
> ... the latest version of tinc... can interface directly with a
> user mode Linux kernel. 
>...
> Is this what you want?

It might be half of it. 

Once we've got a user-space daemon that joins the tinc VPN, I want a library, 
that I can make calls to in a user-space program, that gives me VPN versions of
the BSD socket library, taking the tinc socket as a parameter.  

So instead of socket, listen, accept, setsockopt, connect, getpeername,
et cetera, there would be tinc_* versions of all of these that take a
file system
socket as a parameter.

Alternatively,  "umtinc/types.h" and a "umtinc/socket.h" header files could
be dropped in place of <sys/types.h> and <sys/socket.h> to give full socket
functionality  with traditional syntax.

A tinc_init(char *path_to_file_system_socket) call would initialize
the VPN library
when the VPN daemon is running.

When connecting to addresses outside the VPN, these functions would fall through
to the regular ones.

While I'm dumping my socket library wish list, 
I also want non-blocking connect that takes an int timeout parameter and an int*
where the return value will go, for single-threaded multiplexing clients.

I fear it's just the coffee talking.




-- 
David L Nicol
Dilletantish hacking since 1980


More information about the tinc mailing list