Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lib/socket_wrapper only enable python_socket and socket.py with socket_wrapper | Andrew Bartlett | 2012-05-13 | 1 | -8/+10 |
| | | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun May 13 10:41:27 CEST 2012 on sn-devel-104 | ||||
* | Remove more unnecessary shebang lines in python files. | Jelmer Vernooij | 2012-03-16 | 1 | -2/+0 |
| | | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Mar 16 02:48:52 CET 2012 on sn-devel-104 | ||||
* | pysocketwrapper: fix behaviour to be consistent with 'socket.getsockopt' | Jelmer Vernooij | 2012-02-07 | 1 | -2/+2 |
| | | | | socklen_t is unsigned | ||||
* | socket_wrapper: use libreplace headers based on "#ifdef HAVE_LIBREPLACE" | Michael Adam | 2011-11-25 | 1 | -3/+5 |
| | | | | | | | instead of "#ifdef _SAMBA_BUILD_". This is to be able to use socket_wrapper in other projects that also use libreplace. | ||||
* | socket_wrapper: simplify include path for replace.h | Michael Adam | 2011-11-25 | 1 | -1/+1 |
| | |||||
* | socket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity code | Matthias Dieter Wallnöfer | 2011-11-19 | 1 | -0/+7 |
| | | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 19 14:53:43 CET 2011 on sn-devel-104 | ||||
* | socket_wrapper: Added python interface to socket_wrapper | Amitay Isaacs | 2011-11-17 | 3 | -0/+938 |
| | | | | | | | | | | | 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> | ||||
* | socket_wrapper: correctly handle dup()/dup2() ref counting | Stefan Metzmacher | 2011-09-29 | 1 | -85/+81 |
| | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 29 13:13:56 CEST 2011 on sn-devel-104 | ||||
* | socket_wrapper: pass down the fd explictly from the swrap_*() to the ↵ | Stefan Metzmacher | 2011-09-29 | 1 | -10/+11 |
| | | | | | | real_*() calls metze | ||||
* | swrap: Fix a c++ warning | Volker Lendecke | 2011-09-18 | 1 | -1/+2 |
| | |||||
* | socket-wrapped: added wrappers for dup() and dup2() | Andrew Tridgell | 2011-08-12 | 2 | -2/+131 |
| | | | | | | | | | | 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> | ||||
* | socket_wrapper: make sure interfaces are in the valid range on bind() | Stefan Metzmacher | 2011-07-10 | 1 | -0/+5 |
| | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jul 10 18:24:14 CEST 2011 on sn-devel-104 | ||||
* | lib/socket_wrapper: allow up to 32 interfaces for a bigger 'make test' | Andrew Bartlett | 2011-04-19 | 1 | -1/+4 |
| | | | | | | The combined s3/s4 'make test' needs more interfaces. Andrew Bartlett | ||||
* | socket_wrapper: fix handling of addr and addrlen | Stefan Metzmacher | 2011-03-09 | 1 | -4/+5 |
| | | | | metze | ||||
* | lib/socket_wrapper: try to fix the build on solaris | Stefan Metzmacher | 2011-03-04 | 1 | -0/+13 |
| | | | | | | | struct msg does not contain msg_control, msg_controllen and msg_flags on solaris. metze | ||||
* | socket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev() | Stefan Metzmacher | 2011-03-03 | 1 | -49/+17 |
| | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Mar 3 23:43:39 CET 2011 on sn-devel-104 | ||||
* | socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg() | Stefan Metzmacher | 2011-03-03 | 1 | -47/+66 |
| | | | | | | | This also adds the same logic for broadcast as in swrap_sendto() for SOCK_DGRAM. metze | ||||
* | socket_wrapper: use swrap_sendmsg_before()/after() in swrap_send() | Stefan Metzmacher | 2011-03-03 | 1 | -37/+18 |
| | | | | metze | ||||
* | socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto() | Stefan Metzmacher | 2011-03-03 | 1 | -86/+35 |
| | | | | metze | ||||
* | socket_wrapper: add swrap_sendmsg_before/after helper functions | Stefan Metzmacher | 2011-03-03 | 1 | -0/+191 |
| | | | | | | | | 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 | ||||
* | socket_wrapper: replace recvmsg() correctly | Stefan Metzmacher | 2011-03-03 | 1 | -0/+6 |
| | | | | metze | ||||
* | socket_wrapper: readv() should only work on connected sockets | Stefan Metzmacher | 2011-03-03 | 1 | -0/+5 |
| | | | | metze | ||||
* | socket_wrapper: move swrap_ioctl() above the send*/recv* functions | Stefan Metzmacher | 2011-03-03 | 1 | -26/+26 |
| | | | | metze | ||||
* | socket_wrapper: fix compiler warnings | Stefan Metzmacher | 2011-03-03 | 1 | -28/+37 |
| | | | | metze | ||||
* | socket_wrapper: don't allow connect() to the broadcast address | Stefan Metzmacher | 2011-03-03 | 1 | -1/+8 |
| | | | | | | This will simplify other code later. metze | ||||
* | Fix some nonempty blank lines | Volker Lendecke | 2011-02-13 | 1 | -18/+18 |
| | |||||
* | socket_wrapper: avoid c++ style comments. | Günther Deschner | 2011-02-10 | 1 | -2/+2 |
| | | | | | | Seen on the aix s3-waf build where it causes the build to fail. Guenther | ||||
* | s4-smbtorture: Make test names lowercase and dot-separated. | Jelmer Vernooij | 2010-12-11 | 1 | -1/+1 |
| | | | | | | | | 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 | ||||
* | socket_wrapper: Only add as global dependency when enabled. | Jelmer Vernooij | 2010-11-12 | 1 | -3/+3 |
| | |||||
* | s4-waf: Only enable various wrappers if they're actually used. | Jelmer Vernooij | 2010-11-12 | 1 | -0/+1 |
| | | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Nov 12 14:33:34 UTC 2010 on sn-devel-104 | ||||
* | socket_wrapper: fill in sa.sa_len if the system supports it | Stefan Metzmacher | 2010-11-05 | 1 | -2/+12 |
| | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 5 14:40:00 UTC 2010 on sn-devel-104 | ||||
* | s4: Remove the old perl/m4/make/mk-based build system. | Jelmer Vernooij | 2010-10-31 | 1 | -8/+0 |
| | | | | | | | | 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 | ||||
* | Lowercase socket_wrapper name. | Jelmer Vernooij | 2010-10-21 | 2 | -2/+2 |
| | | | | | | | 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 | ||||
* | wrapper: make socket_wrapper, uid_wrapper and nss_wrapper private libs | Andrew Tridgell | 2010-10-21 | 1 | -4/+5 |
| | | | | | | this prevents double instantiation Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | ||||
* | socket_wrapper: Make it work on freebsd for udp packets | Stefan Metzmacher | 2010-10-10 | 1 | -1/+11 |
| | | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Oct 10 12:57:00 UTC 2010 on sn-devel-104 | ||||
* | s4-waf: fixed target group for SOCKET_WRAPPER | Andrew Tridgell | 2010-05-03 | 1 | -0/+1 |
| | |||||
* | s4-waf: put the --xxx-wrapper options in 'developer options' group | Andrew Tridgell | 2010-04-18 | 1 | -1/+2 |
| | |||||
* | Revert "socket-wrapper: not all systems have FIONREAD defined" | Stefan Metzmacher | 2010-04-08 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | This reverts commit 710aa773d54509de34404f9992c5058ddfa45f3b. 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 | ||||
* | build: allow the waf build to work with python 3.0 and 3.1 | Thomas Nagy | 2010-04-08 | 1 | -4/+2 |
| | | | | | | Python 3.x is a bit fussier about print statements and indentation. Signed-off-by: Andrew Tridgell <tridge@samba.org> | ||||
* | s4-waf: added a --enable-selftest option as a shortcut | Andrew Tridgell | 2010-04-06 | 1 | -1/+3 |
| | | | | | This is equiavalent to --enable-uid-wrapper --enable-nss-wrapper --enable-socket-wrapper but is easier to remember! | ||||
* | s4-waf: fixed some deps now we don't auto-include tevent and replace | Andrew Tridgell | 2010-04-06 | 1 | -2/+2 |
| | | | | | this is preparation for being able to use system versions of these libraries | ||||
* | s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵ | Andrew Tridgell | 2010-04-06 | 2 | -0/+4 |
| | | | | them | ||||
* | build: commit all the waf build files in the tree | Andrew Tridgell | 2010-04-06 | 1 | -0/+4 |
| | |||||
* | build: nearly there on samba4 build | Andrew Tridgell | 2010-04-06 | 1 | -0/+1 |
| | |||||
* | build: added wrapper options | Andrew Tridgell | 2010-04-06 | 1 | -0/+11 |
| | |||||
* | socket-wrapper: not all systems have FIONREAD defined | Andrew Tridgell | 2010-04-03 | 1 | -0/+2 |
| | | | | tru64 for example | ||||
* | socket_wrapper: also ignore AF_INET6 in swrap_setsockopt() | Stefan Metzmacher | 2010-02-17 | 1 | -0/+4 |
| | | | | metze | ||||
* | socket_wrapper: swrap_read() should use SWRAP_RECV* for swrap_dump_packet() | Stefan Metzmacher | 2009-09-08 | 1 | -5/+3 |
| | | | | | | This is the same as swrap_recv(). metze | ||||
* | Add read() to socketwrapper. Metze please check. | Jeremy Allison | 2009-09-07 | 2 | -1/+38 |
| | | | | Jeremy. | ||||
* | Partially revert restriction of socket_wrapper to 1500 byte writes | Andrew Bartlett | 2009-06-19 | 1 | -10/+32 |
| | | | | | | | | | | | This keeps the restriction for stream sockets (where the caller will retry), without creating problems on datagram sockets (CLDAP is not defined, as far as I know, across multiple UDP packets). The commit adding this restriction was 47b106c0ae8b91c9cccfc21bf8e4e416b1abfd5d Andrew Bartlett |