diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-28 01:00:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:18 -0500 |
commit | e91fb065fa83e2ad4e3dacec22f011baf5d3d752 (patch) | |
tree | 06113f610f9dfe5a6bc6c87e40400a00fa546f59 /source4/include/system | |
parent | a5ee5aae6921b844f142d3a5dd67c188612723d7 (diff) | |
download | samba-e91fb065fa83e2ad4e3dacec22f011baf5d3d752.tar.gz samba-e91fb065fa83e2ad4e3dacec22f011baf5d3d752.tar.bz2 samba-e91fb065fa83e2ad4e3dacec22f011baf5d3d752.zip |
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)
Diffstat (limited to 'source4/include/system')
-rw-r--r-- | source4/include/system/network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/include/system/network.h b/source4/include/system/network.h index bad4339666..f661194831 100644 --- a/source4/include/system/network.h +++ b/source4/include/system/network.h @@ -57,6 +57,10 @@ #include <net/if.h> #endif +#ifdef DEVELOPER +#define SOCKET_WRAPPER_REPLACE +#include "lib/socket_wrapper.h" +#endif #ifdef REPLACE_INET_NTOA #define inet_ntoa rep_inet_ntoa |