summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* echo_srv: Fix type punning warnings.Andreas Schneider2014-09-011-88/+86
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* tests: Fix type punning warnings.Andreas Schneider2014-09-0112-378/+477
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* swrap: Fix type punning warnings.Andreas Schneider2014-09-011-75/+127
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* cmake: Set strict aliasing and strict overflow checks.Andreas Schneider2014-09-011-0/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Add #define __APPLE_USE_RFC_3542 to CFLAGSJakub Hrozek2014-08-151-0/+4
| | | | | | | | | | | | Unless __APPLE_USE_RFC_3542 is defined on OSX, constants from RFC 3542 such as IPV6_RECVPKTINFO are not usable. The patch adds the #define unconditionally -- on other platforms, the constant is harmless. Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Define _GNU_SOURCE on one place only.Jakub Hrozek2014-08-154-8/+1
| | | | | | | | | | There were several _GNU_SOURCE definitions scaterred in the build system. This patch always adds -D_GNU_SOURCE to the CFLAGS if building on a UNIX platform. Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Provide a compatible declaration of CMSG_ALIGNJakub Hrozek2014-07-291-1/+1
| | | | | | | | | Some platforms (like OSX) do support some of the CMGS macros, but don't have a CMSG_ALIGN macro of their own. Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* SO_PROTOCOL is platform-dependentJakub Hrozek2014-07-292-1/+12
| | | | | | | | | SO_PROTOCOL is not defined on all platforms. In particular, OSX doesn't include it and so far I haven't found any compatible declaration. Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: fix another discard const warning in swrap_bind()Michael Adam2014-07-091-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: fix discard const warning in swrap_bind()Michael Adam2014-07-091-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: fix discard const warning in swrap_remove_stale()Michael Adam2014-07-091-2/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: fix build when neither HAVE_STRUCT_IN_PKTINFO nor IP_RECVDSTADDR is ↵Michael Adam2014-07-091-2/+1
| | | | | | | defined Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* torture: add HAVE_IPV6 guard to torture_server_address()Michael Adam2014-07-091-0/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* cmake: Add more build warnings and errors.Andreas Schneider2014-07-091-2/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* fix .gitignore for vi backup filesMichael Adam2014-07-091-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* doc: Add a socket_wrapper manpage.Andreas Schneider2014-07-096-44/+316
|
* Bump version to 1.1.1socket_wrapper-1.1.1Andreas Schneider2014-06-052-3/+6
|
* swrap: Disable incomplete bind checks for EADDRINUSE.Andreas Schneider2014-06-051-1/+6
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Disable addr_in_use bind test while the swrap code is incomplete.Andreas Schneider2014-06-051-0/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Bump version to 1.1.0.socket_wrapper-1.1.0Andreas Schneider2014-06-022-3/+14
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Fix conflicting variable name on Solaris.Andreas Schneider2014-06-021-7/+7
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Fix building without bindresvport().Andreas Schneider2014-06-021-1/+8
| | | | | | | This fixes the build on Solaris. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: add new test test_bind_ipv4_addr_in_use()Michael Adam2014-06-011-0/+157
| | | | | | | This tests binding an address that is already in use. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* tests: extend the ipv6 bind testMichael Adam2014-06-011-0/+23
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* tests: greatly extend the ipv4 bind testMichael Adam2014-06-011-0/+88
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: check whether an address:port is already in use in swrap_bind()Michael Adam2014-06-011-0/+7
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: implement check_addr_port_in_use()Michael Adam2014-06-011-0/+83
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: fix AF_UNSPEC special case in swrap_bind()Michael Adam2014-06-011-0/+20
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* swrap: extend input checks in swrap_bind()Michael Adam2014-06-011-2/+48
| | | | | | | Not only check family, but depending on family, also check the length. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Update the todo list.Andreas Schneider2014-06-012-1/+7
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Avoid using getenv() to retrieve the path.Andreas Schneider2014-06-011-7/+7
| | | | | | | CID 17221 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: add check for rpc/rpc.h - needed on freebsd for bindresvportMichael Adam2014-06-014-0/+8
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* tests: Add tests for bindresvport().Andreas Schneider2014-05-311-0/+113
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Add support for bindresvport().Andreas Schneider2014-05-313-0/+92
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Add tests for bind().Andreas Schneider2014-05-312-0/+111
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Add missing family check in bind().Andreas Schneider2014-05-311-0/+5
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Add test that getsockname is correct after socket().Andreas Schneider2014-05-312-0/+70
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Setup myname in swrap_socket() for getsockname().Andreas Schneider2014-05-311-0/+35
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* torture: Wait for the pidfile and then start the tests.Andreas Schneider2014-05-311-1/+13
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* echo_srv: Write pidfile after we setup the listeners.Andreas Schneider2014-05-311-9/+11
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* README.install: improvements and fixes.Michael Adam2014-05-281-10/+14
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Add README.install - instructions for building and installing.Michael Adam2014-05-271-0/+74
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* tests: Fix possible format string attack.Andreas Schneider2014-05-271-6/+3
| | | | | | | | | | Well, there is really not attack on a test but we want to silence Coverity :) CID 17221 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Make sure cmbuf is not NULL.Andreas Schneider2014-05-271-1/+1
| | | | | | | CID 63532 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: We need to pass a pointer-pointer to not leak memory.Andreas Schneider2014-05-271-11/+11
| | | | | | | CID 63533 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* tests: Add more tests for socket options.Andreas Schneider2014-05-261-0/+147
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Support more socket options in getsockopt().Andreas Schneider2014-05-261-5/+46
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* echo_srv: Add support for IP_SENDSRCADDR.Andreas Schneider2014-05-261-5/+13
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* swrap: Call swrap_msghdr_filter_cmsghdr in swrap_sendmsg_before().Andreas Schneider2014-05-261-2/+31
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* swrap: Add swrap_msghdr_filter_cmsg_pktinfo().Andreas Schneider2014-05-261-7/+26
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>