chiark / gitweb /
peer, tunnels: New file-descriptor opening interface.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 20 Dec 2008 17:06:10 +0000 (17:06 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 20 Dec 2008 17:06:10 +0000 (17:06 +0000)
commiteb5f3fea8a65306e424a353951208b11bd3aac22
tree565c6d92569fdcbf9ade2e947ec71c6d200e75f2
parent383a9d7197f7a2c86d1f4267789ea3599314baf8
peer, tunnels: New file-descriptor opening interface.

Separate initializing tunnel devices into distinct stages of obtaining
an appropriate file descriptor, and configuring it and plumbing it into
the select loop.  Alas, this reduces the quality of error reporting when
tunnel acquisition fails.

This is a preliminary stage to implementing privilege separation in the
TrIPE server.
server/peer.c
server/tripe.h
server/tun-bsd.c
server/tun-linux.c
server/tun-slip.c
server/tun-unet.c