Andrew Bartlett
4d5471f1c6
build: Remove special case for the build farm
...
Except in the formatting of the selftest output, this removes the special case
of the build farm, so that an autobuild, a manual make test and the build farm
are more similar.
Andrew Bartlett
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 21 06:39:04 CEST 2012 on sn-devel-104
2012-08-21 06:39:04 +02:00
Christian Ambach
0dfc33026e
lib/socket_wrapper: writev returns ssize_t, not int
2012-08-06 18:07:52 +02:00
Andrew Bartlett
2908bbe06a
s4-selftest: Test samba-tool domain dcpromo
...
This needs a new environment to test it properly. This requires a raise in the
number of socket wrapper interfaces.
Andrew Bartlett
2012-07-06 08:10:18 +02:00
Andrew Bartlett
073666ed29
lib/socket_wrapper only enable python_socket and socket.py with socket_wrapper
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May 13 10:41:27 CEST 2012 on sn-devel-104
2012-05-13 10:41:27 +02:00
Jelmer Vernooij
0affe19304
Remove more unnecessary shebang lines in python files.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 02:48:52 CET 2012 on sn-devel-104
2012-03-16 02:48:52 +01:00
Jelmer Vernooij
a05a9101b6
pysocketwrapper: fix behaviour to be consistent with 'socket.getsockopt'
...
socklen_t is unsigned
2012-02-07 01:11:07 +01:00
Michael Adam
9b42b8a346
socket_wrapper: use libreplace headers based on "#ifdef HAVE_LIBREPLACE"
...
instead of "#ifdef _SAMBA_BUILD_".
This is to be able to use socket_wrapper in other projects
that also use libreplace.
2011-11-25 13:24:34 +01:00
Michael Adam
87026b6dc3
socket_wrapper: simplify include path for replace.h
2011-11-25 13:24:34 +01:00
Matthias Dieter Wallnöfer
dbd930cb24
socket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity code
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 19 14:53:43 CET 2011 on sn-devel-104
2011-11-19 14:53:43 +01:00
Amitay Isaacs
bd8aafc530
socket_wrapper: Added python interface to socket_wrapper
...
The socket_wrapper does not support setting blocking flag or
timeouts on the sockets.
To use socket module in python, use
from samba import socket
Signed-off-by: Kai Blin <kai@samba.org>
2011-11-17 08:42:45 +01:00
Stefan Metzmacher
27195b3ac5
socket_wrapper: correctly handle dup()/dup2() ref counting
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 13:13:56 CEST 2011 on sn-devel-104
2011-09-29 13:13:56 +02:00
Stefan Metzmacher
a110d05f67
socket_wrapper: pass down the fd explictly from the swrap_*() to the real_*() calls
...
metze
2011-09-29 10:27:15 +02:00
Volker Lendecke
120b1392d3
swrap: Fix a c++ warning
2011-09-18 17:24:22 +02:00
Andrew Tridgell
63e5b395d0
socket-wrapped: added wrappers for dup() and dup2()
...
The Samba4 standard process model uses dup() on incoming sockets as an
optimisation (it makes select() a tiny bit faster when used).
Adding dup() to socket wrapper allows us to use the standard process
model in selftest
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-12 09:38:26 +02:00
Stefan Metzmacher
86b7b5cd96
socket_wrapper: make sure interfaces are in the valid range on bind()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jul 10 18:24:14 CEST 2011 on sn-devel-104
2011-07-10 18:24:14 +02:00
Andrew Bartlett
29d8c597fc
lib/socket_wrapper: allow up to 32 interfaces for a bigger 'make test'
...
The combined s3/s4 'make test' needs more interfaces.
Andrew Bartlett
2011-04-19 10:03:49 +10:00
Stefan Metzmacher
a29999392a
socket_wrapper: fix handling of addr and addrlen
...
metze
2011-03-09 12:27:25 +01:00
Stefan Metzmacher
2c7c3d03d5
lib/socket_wrapper: try to fix the build on solaris
...
struct msg does not contain msg_control, msg_controllen and msg_flags
on solaris.
metze
2011-03-04 21:19:05 +01:00
Stefan Metzmacher
a5d54579ea
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 3 23:43:39 CET 2011 on sn-devel-104
2011-03-03 23:43:39 +01:00
Stefan Metzmacher
e831376f91
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg()
...
This also adds the same logic for broadcast as in swrap_sendto()
for SOCK_DGRAM.
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
4a736f0fbe
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_send()
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
a2db6b4dba
socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto()
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
8c6d7d7b27
socket_wrapper: add swrap_sendmsg_before/after helper functions
...
Currently have almost the same logic in swrap_send(), swrap_sendto(),
swrap_writev() and swrap_sendmsg(), this helper functions
let combine all the logic in 2 places.
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
c9ae810209
socket_wrapper: replace recvmsg() correctly
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
ec028b555b
socket_wrapper: readv() should only work on connected sockets
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
7bdc3db9ea
socket_wrapper: move swrap_ioctl() above the send*/recv* functions
...
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
0ad8d459c6
socket_wrapper: fix compiler warnings
...
metze
2011-03-03 22:57:25 +01:00
Stefan Metzmacher
e3c0d66110
socket_wrapper: don't allow connect() to the broadcast address
...
This will simplify other code later.
metze
2011-03-03 22:57:25 +01:00
Volker Lendecke
7852527073
Fix some nonempty blank lines
2011-02-13 12:11:52 +01:00
Günther Deschner
2f6d76a95f
socket_wrapper: avoid c++ style comments.
...
Seen on the aix s3-waf build where it causes the build to fail.
Guenther
2011-02-10 15:29:37 +01:00
Jelmer Vernooij
35fbc7bbda
s4-smbtorture: Make test names lowercase and dot-separated.
...
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11 04:16:13 +01:00
Jelmer Vernooij
1f853ee51b
socket_wrapper: Only add as global dependency when enabled.
2010-11-12 17:42:13 +00:00
Jelmer Vernooij
5cf904b1d9
s4-waf: Only enable various wrappers if they're actually used.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Nov 12 14:33:34 UTC 2010 on sn-devel-104
2010-11-12 14:33:34 +00:00
Stefan Metzmacher
c1e3c8b550
socket_wrapper: fill in sa.sa_len if the system supports it
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Nov 5 14:40:00 UTC 2010 on sn-devel-104
2010-11-05 14:40:00 +00:00
Jelmer Vernooij
3deece5591
s4: Remove the old perl/m4/make/mk-based build system.
...
The new waf-based build system now has all the same functionality, and
the old build system has been broken for quite some time.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-31 02:01:44 +00:00
Jelmer Vernooij
c529317fe2
Lowercase socket_wrapper name.
...
Avoid linking against socket_wrapper outside of developer mode.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 21 20:26:11 UTC 2010 on sn-devel-104
2010-10-21 20:26:11 +00:00
Andrew Tridgell
dc00b773fc
wrapper: make socket_wrapper, uid_wrapper and nss_wrapper private libs
...
this prevents double instantiation
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-21 19:03:24 +11:00
Stefan Metzmacher
9b9489479e
socket_wrapper: Make it work on freebsd for udp packets
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Oct 10 12:57:00 UTC 2010 on sn-devel-104
2010-10-10 12:56:59 +00:00
Andrew Tridgell
0003bb460b
s4-waf: fixed target group for SOCKET_WRAPPER
2010-05-03 17:16:47 +02:00
Andrew Tridgell
d81eccc0ba
s4-waf: put the --xxx-wrapper options in 'developer options' group
2010-04-18 15:00:37 +10:00
Stefan Metzmacher
0922c5ab2d
Revert "socket-wrapper: not all systems have FIONREAD defined"
...
This reverts commit 710aa773d5
.
We rely on FIONREAD in a lot of other parts in the code,
so there's no need to have an ifdef for it in the socket_wrapper code.
On tru64 FIONREAD is defined in <sys/ioctl.h>
and we include <sys/ioctl.h> via "system/network.h".
Tridge: maybe a HAVE_SYS_IOCTL_H was missing at the time you tried
it on tru64?
If we find a platform that doesn't support it,
we need to bail out at configure time or
provide a replacement in libreplace.
metze
2010-04-08 08:34:39 +02:00
Thomas Nagy
7f3116a63d
build: allow the waf build to work with python 3.0 and 3.1
...
Python 3.x is a bit fussier about print statements and indentation.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-04-08 07:46:39 +10:00
Andrew Tridgell
77a4fe495e
s4-waf: added a --enable-selftest option as a shortcut
...
This is equiavalent to --enable-uid-wrapper --enable-nss-wrapper --enable-socket-wrapper
but is easier to remember!
2010-04-06 20:27:17 +10:00
Andrew Tridgell
01682f797f
s4-waf: fixed some deps now we don't auto-include tevent and replace
...
this is preparation for being able to use system versions of these
libraries
2010-04-06 20:27:12 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Andrew Tridgell
8f1b809d2c
build: nearly there on samba4 build
2010-04-06 20:26:47 +10:00
Andrew Tridgell
6a8c43672b
build: added wrapper options
2010-04-06 20:26:46 +10:00
Andrew Tridgell
710aa773d5
socket-wrapper: not all systems have FIONREAD defined
...
tru64 for example
2010-04-03 13:31:12 +11:00
Stefan Metzmacher
0b3e950731
socket_wrapper: also ignore AF_INET6 in swrap_setsockopt()
...
metze
2010-02-17 14:13:55 +01:00