summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* src: Add timerfd_create() to handle stale fds.Andreas Schneider2014-01-283-0/+42
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Add eventfd() to handle stale fds.Andreas Schneider2014-01-283-0/+42
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Add signalfd() to handle stale fds.Andreas Schneider2014-01-283-7/+43
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Add socketpair() to handle stale fds.Andreas Schneider2014-01-281-0/+30
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Add pipe() to handle stale fds.Andreas Schneider2014-01-281-0/+30
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Check for stale fds in swrap_accept().Andreas Schneider2014-01-281-0/+4
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Check for stale fds in swrap_socket().Andreas Schneider2014-01-281-1/+9
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Handle stale fds in swrap_recvmsg_after().Andreas Schneider2014-01-281-9/+16
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Handle stale fds in swrap_sendmsg_after().Andreas Schneider2014-01-281-7/+13
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Try to recover when reading from a fd returns ENOTSOCK.Nalin Dahyabhai2014-01-281-8/+25
| | | | | | | | | When attempting to read from a descriptor, if an underlying autobind fails because it's not a socket, stop intercepting uses of that descriptor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Try to recover when writing to fd returns ENOTSOCK.Nalin Dahyabhai2014-01-281-9/+32
| | | | | | | | | When attempting to write to a descriptor, if an underlying autobind fails because it's not a socket, stop intercepting uses of that descriptor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Try to recover when sockets are closed elsewhere.Nalin Dahyabhai2014-01-281-0/+61
| | | | | | | | | | | There are methods for closing descriptors (libc-internal code paths, direct syscalls) which close descriptors in ways that we can't intercept, so try to recover when we notice that that's happened: * If we see a descriptor being handed back from open() that we thought was a socket, stop intercepting uses of that descriptor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* src: Use swrap_recvmsg_(before|after) for swrap_readv().Andreas Schneider2014-01-281-53/+27
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Update TODO.Andreas Schneider2014-01-281-0/+3
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Update ChangeLog.Andreas Schneider2014-01-281-0/+5
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Update TODO.Andreas Schneider2014-01-241-3/+19
|
* src: Fix warnings on Solaris.Andreas Schneider2014-01-211-5/+7
|
* src: Initialize sockaddr_un.Andreas Schneider2014-01-211-1/+1
| | | | Fixes a valgrind warning.
* src: Make sure the memory is zeroed.Andreas Schneider2014-01-211-1/+4
|
* src: Case pid_t to an int in SWRAP_LOG.Andreas Schneider2014-01-211-16/+8
|
* cmake: Only build test_sendmsg_recvmsg_fd if we have msg_control.Andreas Schneider2014-01-211-2/+5
|
* src: Fix setting the temp iovec.Andreas Schneider2014-01-211-9/+9
|
* src: Fix build on Solaris.Andreas Schneider2014-01-211-18/+32
|
* cmake: Check for HAVE_STRUCT_MSGHDR_MSG_CONTROL.Andreas Schneider2014-01-212-0/+2
|
* cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection.Andreas Schneider2014-01-212-1/+5
|
* src: Fix build warnings on FreeBSD.Andreas Schneider2014-01-211-8/+8
|
* cmake: Add cmake config version script.Andreas Schneider2014-01-203-12/+39
|
* cmake: Add pkg-config file.Andreas Schneider2014-01-202-0/+14
|
* Improve the README.Andreas Schneider2014-01-201-9/+20
|
* tests: Add sendmsg_recvmsg_fd test.Jakub Hrozek2014-01-202-1/+118
|
* tests: Add test_echo_udp_sendmsg_recvmsg.Andreas Schneider2014-01-202-1/+201
|
* swrap: Implement recvmsg().Andreas Schneider2014-01-201-1/+50
|
* swrap: Fix DGRAM in swrap_recvmsg(before|after).Andreas Schneider2014-01-201-30/+74
|
* swrap: Use swrap_recvmsg_* in swrap_read().Stefan Metzmacher2014-01-201-10/+28
|
* swrap: Use swrap_recvmsg_* in swrap_recv().Stefan Metzmacher2014-01-201-10/+28
|
* swrap: Use swrap_recvmsg_* in swrap_recvfrom().Stefan Metzmacher2014-01-201-9/+30
|
* swrap: Add swrap_recvmsg_after().Stefan Metzmacher2014-01-201-0/+78
|
* swrap: Add swrap_recvmsg_before().Stefan Metzmacher2014-01-201-0/+49
|
* echo_srv: Add fd duplication and test it works.Andreas Schneider2013-12-241-4/+206
|
* test: Fix getsockopt on Solaris.Andreas Schneider2013-12-231-2/+3
|
* tests: Fix getsockopt() on Solaris.Andreas Schneider2013-12-231-2/+2
|
* tests: writev/readv must have iovec > 0Jakub Hrozek2013-12-231-2/+2
| | | | writev/readv with iovec == 0 works on Linux, but that is not portable.
* tests: Remove unused variable warningJakub Hrozek2013-12-231-0/+2
| | | | The variables were unused if SIOCGPGRP wasn't defined.
* torture: Add TORTURE_SKIP_CLEANUP to not delete socket_dir.Andreas Schneider2013-12-231-4/+9
|
* torture: Generate network traces for each test.Andreas Schneider2013-12-232-0/+13
|
* tests: Add test_echo_tcp_socket_options().Andreas Schneider2013-12-232-0/+152
|
* tests: Add test_echo_tcp_connect test.Andreas Schneider2013-12-232-1/+102
| | | | This tests some corner cases we fixed in the past.
* tests: Add missing include for writev/readv.Andreas Schneider2013-12-211-0/+1
|
* tests: Add an ifdef around static IPv6 only functionsJakub Hrozek2013-12-203-0/+6
| | | | | This would prevent an uninitialized function warning in case IPv6 was not available.
* tests: Add test_echo_tcp_write_readvJakub Hrozek2013-12-202-1/+177
|