Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | src: Add timerfd_create() to handle stale fds. | Andreas Schneider | 2014-01-28 | 3 | -0/+42 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Add eventfd() to handle stale fds. | Andreas Schneider | 2014-01-28 | 3 | -0/+42 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Add signalfd() to handle stale fds. | Andreas Schneider | 2014-01-28 | 3 | -7/+43 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Add socketpair() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+30 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Add pipe() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+30 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Check for stale fds in swrap_accept(). | Andreas Schneider | 2014-01-28 | 1 | -0/+4 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Check for stale fds in swrap_socket(). | Andreas Schneider | 2014-01-28 | 1 | -1/+9 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Handle stale fds in swrap_recvmsg_after(). | Andreas Schneider | 2014-01-28 | 1 | -9/+16 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Handle stale fds in swrap_sendmsg_after(). | Andreas Schneider | 2014-01-28 | 1 | -7/+13 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | src: Try to recover when reading from a fd returns ENOTSOCK. | Nalin Dahyabhai | 2014-01-28 | 1 | -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 Dahyabhai | 2014-01-28 | 1 | -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 Dahyabhai | 2014-01-28 | 1 | -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 Schneider | 2014-01-28 | 1 | -53/+27 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | Update TODO. | Andreas Schneider | 2014-01-28 | 1 | -0/+3 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | Update ChangeLog. | Andreas Schneider | 2014-01-28 | 1 | -0/+5 |
| | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
* | Update TODO. | Andreas Schneider | 2014-01-24 | 1 | -3/+19 |
| | |||||
* | src: Fix warnings on Solaris. | Andreas Schneider | 2014-01-21 | 1 | -5/+7 |
| | |||||
* | src: Initialize sockaddr_un. | Andreas Schneider | 2014-01-21 | 1 | -1/+1 |
| | | | | Fixes a valgrind warning. | ||||
* | src: Make sure the memory is zeroed. | Andreas Schneider | 2014-01-21 | 1 | -1/+4 |
| | |||||
* | src: Case pid_t to an int in SWRAP_LOG. | Andreas Schneider | 2014-01-21 | 1 | -16/+8 |
| | |||||
* | cmake: Only build test_sendmsg_recvmsg_fd if we have msg_control. | Andreas Schneider | 2014-01-21 | 1 | -2/+5 |
| | |||||
* | src: Fix setting the temp iovec. | Andreas Schneider | 2014-01-21 | 1 | -9/+9 |
| | |||||
* | src: Fix build on Solaris. | Andreas Schneider | 2014-01-21 | 1 | -18/+32 |
| | |||||
* | cmake: Check for HAVE_STRUCT_MSGHDR_MSG_CONTROL. | Andreas Schneider | 2014-01-21 | 2 | -0/+2 |
| | |||||
* | cmake: Fix HAVE_STRUCT_SOCKADDR_SA_LEN detection. | Andreas Schneider | 2014-01-21 | 2 | -1/+5 |
| | |||||
* | src: Fix build warnings on FreeBSD. | Andreas Schneider | 2014-01-21 | 1 | -8/+8 |
| | |||||
* | cmake: Add cmake config version script. | Andreas Schneider | 2014-01-20 | 3 | -12/+39 |
| | |||||
* | cmake: Add pkg-config file. | Andreas Schneider | 2014-01-20 | 2 | -0/+14 |
| | |||||
* | Improve the README. | Andreas Schneider | 2014-01-20 | 1 | -9/+20 |
| | |||||
* | tests: Add sendmsg_recvmsg_fd test. | Jakub Hrozek | 2014-01-20 | 2 | -1/+118 |
| | |||||
* | tests: Add test_echo_udp_sendmsg_recvmsg. | Andreas Schneider | 2014-01-20 | 2 | -1/+201 |
| | |||||
* | swrap: Implement recvmsg(). | Andreas Schneider | 2014-01-20 | 1 | -1/+50 |
| | |||||
* | swrap: Fix DGRAM in swrap_recvmsg(before|after). | Andreas Schneider | 2014-01-20 | 1 | -30/+74 |
| | |||||
* | swrap: Use swrap_recvmsg_* in swrap_read(). | Stefan Metzmacher | 2014-01-20 | 1 | -10/+28 |
| | |||||
* | swrap: Use swrap_recvmsg_* in swrap_recv(). | Stefan Metzmacher | 2014-01-20 | 1 | -10/+28 |
| | |||||
* | swrap: Use swrap_recvmsg_* in swrap_recvfrom(). | Stefan Metzmacher | 2014-01-20 | 1 | -9/+30 |
| | |||||
* | swrap: Add swrap_recvmsg_after(). | Stefan Metzmacher | 2014-01-20 | 1 | -0/+78 |
| | |||||
* | swrap: Add swrap_recvmsg_before(). | Stefan Metzmacher | 2014-01-20 | 1 | -0/+49 |
| | |||||
* | echo_srv: Add fd duplication and test it works. | Andreas Schneider | 2013-12-24 | 1 | -4/+206 |
| | |||||
* | test: Fix getsockopt on Solaris. | Andreas Schneider | 2013-12-23 | 1 | -2/+3 |
| | |||||
* | tests: Fix getsockopt() on Solaris. | Andreas Schneider | 2013-12-23 | 1 | -2/+2 |
| | |||||
* | tests: writev/readv must have iovec > 0 | Jakub Hrozek | 2013-12-23 | 1 | -2/+2 |
| | | | | writev/readv with iovec == 0 works on Linux, but that is not portable. | ||||
* | tests: Remove unused variable warning | Jakub Hrozek | 2013-12-23 | 1 | -0/+2 |
| | | | | The variables were unused if SIOCGPGRP wasn't defined. | ||||
* | torture: Add TORTURE_SKIP_CLEANUP to not delete socket_dir. | Andreas Schneider | 2013-12-23 | 1 | -4/+9 |
| | |||||
* | torture: Generate network traces for each test. | Andreas Schneider | 2013-12-23 | 2 | -0/+13 |
| | |||||
* | tests: Add test_echo_tcp_socket_options(). | Andreas Schneider | 2013-12-23 | 2 | -0/+152 |
| | |||||
* | tests: Add test_echo_tcp_connect test. | Andreas Schneider | 2013-12-23 | 2 | -1/+102 |
| | | | | This tests some corner cases we fixed in the past. | ||||
* | tests: Add missing include for writev/readv. | Andreas Schneider | 2013-12-21 | 1 | -0/+1 |
| | |||||
* | tests: Add an ifdef around static IPv6 only functions | Jakub Hrozek | 2013-12-20 | 3 | -0/+6 |
| | | | | | This would prevent an uninitialized function warning in case IPv6 was not available. | ||||
* | tests: Add test_echo_tcp_write_readv | Jakub Hrozek | 2013-12-20 | 2 | -1/+177 |
| |