r6088: Add the socket_wrapper library. This is a very simple library that
commite91fb065fa83e2ad4e3dacec22f011baf5d3d752
authorJelmer Vernooij <jelmer@samba.org>
Mon, 28 Mar 2005 01:00:39 +0000 (28 01:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:18 +0000 (10 13:11 -0500)
tree06113f610f9dfe5a6bc6c87e40400a00fa546f59
parenta5ee5aae6921b844f142d3a5dd67c188612723d7
r6088: Add the socket_wrapper library. This is a very simple library that
redirects traffic (currently just IP traffic) over unix domain sockets
if the SOCKET_WRAPPER_DIR environment variable has been set.
Aim is to use this for the Samba4 torture suite on the buildfarm.

The socket_wrapper library can only be used if Samba was compiled with
--enable-developer.

test_rpc.sh passes against a local smbd with SOCKET_WRAPPER_DIR set.
(and ethereal showed no traffic whatsoever)

Stuff that still needs to be fixed in socketwrapper:
 - Give ENETUNREACH if target is not localhost
 - A given port number can only be used for UDP /or/ TCP, not both.
 - Perhaps allow some calls to circumvent socketwrapper (do we need DNS?)
(This used to be commit f8a63a843ccca092d9756b64e09175d37c08550a)
source4/include/system/network.h
source4/lib/basic.mk
source4/lib/socket_wrapper.c [new file with mode: 0644]
source4/lib/socket_wrapper.h [new file with mode: 0644]