Stefan Metzmacher
47f865165e
r25783: socket_wrapper: don't include "includes.h"
...
metze
2007-12-21 05:43:57 +01:00
Jelmer Vernooij
3aa7ee4a0d
r25028: Fix more warnings.
2007-10-10 15:05:41 -05:00
Jelmer Vernooij
5085c53fcf
r25027: Fix more warnings.
2007-10-10 15:05:41 -05:00
Stefan Metzmacher
96f1a0dfaa
r23420: try to make the IBM checker happy
...
metze
2007-10-10 14:53:17 -05:00
Andrew Bartlett
2254e61a1e
r22236: Update to Heimdal's socket_wrapper, which supports IPv6.
...
To make this pass, I needed to add support for 6 and 17 as valid
protocol values to socket().
Andrew Bartlett
2007-10-10 14:50:41 -05:00
Jelmer Vernooij
d2baa8218c
r21729: Some more tests
2007-10-10 14:49:19 -05:00
Jelmer Vernooij
872e2ad541
r21671: Add initial simple tests for socket wrapper
2007-10-10 14:49:07 -05:00
Love Hörnquist Åstrand
5052d2d106
r19409: Pull in <sys/time.h> for struct timeval for non samba build (don't
...
depend on namespace pollution)
2007-10-10 14:21:28 -05:00
Love Hörnquist Åstrand
e2866ce788
r19367: Solaris needs <sys/filio.h> for FIONREAD.
2007-10-10 14:21:18 -05:00
Stefan Metzmacher
82abc39b55
r19178: fix the standalone build of socket_wrapper by not using
...
samba's DLIST_ macros
metze
2007-10-10 14:20:50 -05:00
Love Hörnquist Åstrand
fe621c1ab2
r19176: Also require <fcntl.h> and <sys/ioctl.h> for non samba builds.
2007-10-10 14:20:50 -05:00
Love Hörnquist Åstrand
8c2585f0cf
r19175: If not in _SAMBA_BUILD_, define _PUBLIC_ to nothing.
2007-10-10 14:20:49 -05:00
Stefan Metzmacher
9f8809a16e
r19171: change the socket wrapper license to
...
what heimdal uses...
metze
2007-10-10 14:20:48 -05:00
Volker Lendecke
042a22b6dd
r19136: No conflict, after "svn up" it applied correctly", merge 19126 from 3_0
2007-10-10 14:20:38 -05:00
Stefan Metzmacher
990dfc98e4
r19097: add support for SUCKET_WRAPPER_PCAP_FILE
...
we may need to rework the code to use something like PUSH_U32()
into a data blob instead of the structs for the header layout.
metze
2007-10-10 14:20:35 -05:00
Stefan Metzmacher
7e89a0a282
r19084: make socket_wrapper more portable (standalone) and not use uintX_t
...
metze
2007-10-10 14:20:34 -05:00
Stefan Metzmacher
20945409b8
r19082: add the source vs. destination address and tcp logic
...
for SOCKET_WRAPPER_PCAP_FILE support.
metze
2007-10-10 14:20:34 -05:00
Stefan Metzmacher
400098416c
r18992: prepare SOCKET_WRAPPER_PCAP_FILE support
...
metze
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
dfaccdca1b
r18947: overload listen() and ioctl() in socket_wrapper
...
metze
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
68a65aa449
r18918: - bail out with unsupported option to socket()
...
- don't reuse portnumbers in the autobind code
- use if (!...) return; logic instead of if (...) { do everything } return
for swrap_close
metze
2007-10-10 14:20:21 -05:00
Andrew Tridgell
3c4100027c
r18917: having 255 virtual interfaces available in socket wrapper means we
...
stat() 240 files that don't exist on every broadcast. That's a bit
excessive!
reduce max virtual interfaces to 16
2007-10-10 14:20:21 -05:00
Volker Lendecke
771d30ca0c
r18661: C++ warnings
2007-10-10 14:19:00 -05:00
Stefan Metzmacher
26228e4b2e
r18593: try to get the same socket_wrapper file building in samba3 and samba4
...
this is preparation of adding libreplace to samba3 later.
metze
2007-10-10 14:18:54 -05:00
Andrew Tridgell
6d53f2f5bc
r18586: fixed a potential fd and memory leak in the socket_wrapper code
2007-10-10 14:18:52 -05:00
Stefan Metzmacher
d222fab2b5
r18428: add my copyright
...
metze
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
d373890fb2
r18427: set sin_port correctly on autobound socket
...
metze
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
224f26602a
r18426: use 'family' consistantly instead of mixing 'domain' and 'family'
...
metze
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
7670e9ae6e
r18424: there's no need to allocate a wrapped socket for unix sockets,
...
also this makes sure the socket file isn't unlinked if using socket
wrapper.
metze
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
7f29471f0b
r18423: record accept, connect and close events in socket wrapper
...
metze
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
d05cab5c62
r18417: overload send() and recv() by socket wrapper
...
and add a dummy swrap_dump_packet() function
which can later dump the packet content,
so that a script can then generate a capture file
for wireshark
metze
2007-10-10 14:18:26 -05:00
Jelmer Vernooij
f7afa1cb77
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
2007-10-10 14:16:54 -05:00
Jelmer Vernooij
12ba42de58
r15358: Fix some compiler warnings / type safety. Found by tcc
2007-10-10 14:05:25 -05:00
Andrew Tridgell
cd106509b6
r14977: more IBM checker fixes
2007-10-10 14:00:49 -05:00
Jelmer Vernooij
9a188eb1f4
r13840: Mark some functions as public.
2007-10-10 13:52:14 -05:00
Andrew Bartlett
57b0aae0d4
r12710: Fix socket_wrapper: Make sure to fill in the socket family on the
...
returned address.
Andrew Bartlett
2007-10-10 13:49:44 -05:00
Stefan Metzmacher
81d322f91a
r12074: in accept() we need to set socket name of the child socket by looking
...
up what address the client has used, as the socket is maybe bound to '0.0.0.0'
metze
2007-10-10 13:47:05 -05:00
Stefan Metzmacher
61dbe9e507
r12073: fix vlgrind error, calculate the correct size for memcpy()
...
and don't assume out_len is >= sizeof(*in_addr)
metze
2007-10-10 13:47:05 -05:00
Stefan Metzmacher
dbd01110d1
r11555: - change socket_wrapper to support multiple IP's
...
- SOCKET_WRAPPER_DEFAULT_IFACE=X specifies the default interface
for 127.0.0.X
- we now use multiple interfaces for smbtorture in make test
127.0.0.26-127.0.0.31
- and 127.0.0.1 only for smbd
the are more work needed for better support for broacast messages...
but this is enough for the winsrepl tests
metze
2007-10-10 13:45:53 -05:00
Stefan Metzmacher
e60d491864
r11502: make sure we always use the 7 chars for the unix socket name.
...
this is to test if that works on irix 6.4 where we can only use 16 chars for the sun_path
of the unix sockets.
the plan is to make multiple interfaces possible with socket wrapper,
and the format will change to ("%c%02X%04X", type, iface, port),
which is also 7 char to the file name
metze
2007-10-10 13:45:46 -05:00
Andrew Tridgell
e6d9cde482
r8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves us 2 more chars
...
in the name, which is enough to get IRIX 6.4 working
2007-10-10 13:29:54 -05:00
Andrew Tridgell
f9693e313d
r8671: use much shorter names for the selftest directory and socket wrapper
...
code. I'm afraid this is needed by irix 6.4 which silently truncates
names in unix domain sockets in recvfrom() to 16 chars. My apologies
for having to move to such short names :-(
2007-10-10 13:29:52 -05:00
Andrew Tridgell
c1a0c2042d
r7913: prevent recursion in the socket wrapper code
2007-10-10 13:18:49 -05:00
Andrew Tridgell
d2e9e95ea2
r7910: fixed typo in _SAMBA_BUILD_ macro
2007-10-10 13:18:48 -05:00
Andrew Tridgell
56fe27623c
r7754: fixed the local port of accepted sockets in socket_wrapper. This fixes
...
the problem with the ldap tests in 'make test'
2007-10-10 13:18:31 -05:00
Andrew Tridgell
417e967afb
r7460: fixed several problems with the socket wrapper code and unbound sockets
...
This should fix the LOCAL-SOCKET test in the build farm
2007-10-10 13:17:55 -05:00
Jelmer Vernooij
7d2d4a57e0
r6564: - Fix bug in socket_wrapper
...
- Add options --quiet and --outputdir options to the provisioning script
- Add simple 'make test' and 'make test-swrap'
2007-10-10 13:16:26 -05:00
Andrew Tridgell
11e245a3f0
r6222: fixed the socket wrapper code for getsockname()
2007-10-10 13:11:27 -05:00
Andrew Tridgell
61e1eea0fd
r6150: fixed a few socket_wrapper bugs.
...
- now works properly with UDP, so the NBT tests work
- fixed byte order in a few places
- connect() now fails to non-localhost
- fixed some places that tested for < 0, which should be == -1 (most syscalls
return -1 on error, not "negative")
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
88d93b9782
r6144: Apparently there are more systems that have AF_UNIX then
...
AF_LOCAL (we already use AF_UNIX in other places).
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
443fb7853b
r6140: - Add configure option for enabling the socket-wrapper library, so it
...
can be enabled on the buildfarm without requiring --enable-developer
- Support tcp and udp being used on the same port
- FIx some portability issues (should fix the build on
some hosts on the buildfarm)
- Ignore setting TCP_NODELAY on (semi-)TCP sockets rather then complain about
it not being supported (saves us from a couple of error messages for each
connection that is opened)
2007-10-10 13:11:21 -05:00