svn commit: samba r6088 - in branches/SAMBA_4_0/source: include/system lib

jelmer at samba.org jelmer at samba.org
Mon Mar 28 01:00:40 GMT 2005


Author: jelmer
Date: 2005-03-28 01:00:39 +0000 (Mon, 28 Mar 2005)
New Revision: 6088

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6088

Log:
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?)


Added:
   branches/SAMBA_4_0/source/lib/socket_wrapper.c
   branches/SAMBA_4_0/source/lib/socket_wrapper.h
Modified:
   branches/SAMBA_4_0/source/include/system/network.h
   branches/SAMBA_4_0/source/lib/basic.mk


Changeset:
Sorry, the patch is too large (506 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6088


More information about the samba-cvs mailing list