summaryrefslogtreecommitdiff
path: root/lib/socket_wrapper
AgeCommit message (Collapse)AuthorFilesLines
2017-11-25build: Move socket_wrapper to third_partyAndreas Schneider2-5462/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2016-07-11swrap: Build socket_wrapper path relative to blddirAmitay Isaacs1-2/+2
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
2016-05-20swrap: Update to version 1.1.7Andreas Schneider2-12/+85
* Added support for accept4() * Added support for OpenBSD * Fixed sendto() with UDP and a connected socket * Fixed AF_RAWLINK sockets Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri May 20 13:58:37 CEST 2016 on sn-devel-144
2016-03-22lib: Update socket_wrapper to version 1.1.6Andreas Schneider2-12/+148
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-10-16build: Build *_wrapper without -DNDEBUG for in-tree useAndrew Bartlett1-1/+0
These binaires are not installed, so are only used in make test, and there we need debug output. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Oct 16 16:36:22 CEST 2015 on sn-devel-104
2015-09-08swrap: Bump version to 1.1.4Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Sep 8 16:49:23 CEST 2015 on sn-devel-104
2015-09-08swrap: Call dlclose() in the destructorAndreas Schneider1-0/+7
Signed-off-by: Andreas Schneider <asn@samba.org>
2015-09-08swrap: Fix signed comparsion warningsAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2015-09-08swrap: Add environment variable to specify mtu sizeAndreas Schneider1-12/+50
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-09-08swrap: Fix TCP support with sendmsg/recvmsgAndreas Schneider1-5/+10
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-09-08swrap: Correctly update the msg_name in recvmsg()Andreas Schneider1-13/+30
This has been found while debugging nsupdate. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-02-23swrap: Bump version to 1.1.3Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-02-23swrap: If we remove the socket_info also unlink the unix socketAndreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-02-23swrap: Do not leak the socket_info we just removed.Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-02-23src: Add support for running with address sanitizer.Andreas Schneider1-0/+8
If address sanitzer will complain about our hack with variable function attributes. This disables the checking of it. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2015-02-23swrap: Fix the loop for older gcc versions.Andreas Schneider1-2/+8
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-12-08socket_wrapper: Add missing prototype check for eventfd.Andreas Schneider1-0/+5
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10965 Newer glibc versions use and unsinged integer for the count instead of an integer. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Bump version to 1.1.2.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Matthieu Patou <mat@matws.net> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Oct 2 12:00:14 CEST 2014 on sn-devel-104
2014-10-02swrap: Add support for eventfd with unsigned count variable.Andreas Schneider1-0/+4
The prototype in glibc 2.20.90 changed. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Add a trace message for swrap_socket().Andreas Schneider1-0/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Implement fcntl() to catch F_DUPFD.Andreas Schneider1-1/+86
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Include the function name in the debug output.Andreas Schneider1-12/+14
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Silence alignment warnings.Andreas Schneider1-16/+16
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Fix type punning warnings when loading functions.Andreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Fix access to struct members in log messages.Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Fix whitespace errors.Andreas Schneider1-16/+16
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Update copyright notice.Andreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Wrap fopen to detect stale file descriptors.Andreas Schneider1-0/+31
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Use swrap_address in swrap_accept().Andreas Schneider1-28/+23
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Remove unused sockaddr_dup() function.Andreas Schneider1-7/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Use swrap_address in the socket_info struct.Andreas Schneider1-107/+109
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Use a sockaddr_un for the unix path in socket_info.Andreas Schneider1-5/+7
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Rename swrap_pcap_dump_packet().Andreas Schneider1-29/+29
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Rename swrap_pcap_get_fd().Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Rename swrap_marshall_packet().Andreas Schneider1-8/+13
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Rename swrap_packet_init().Andreas Schneider1-15/+22
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Rename socket_wrapper_pcap_file().Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02swrap: Fix type punning warnings.Andreas Schneider1-75/+127
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-02Provide a compatible declaration of CMSG_ALIGNJakub Hrozek1-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>
2014-10-02SO_PROTOCOL is platform-dependentJakub Hrozek1-0/+3
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>
2014-10-02swrap: fix another discard const warning in swrap_bind()Michael Adam1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-10-02swrap: fix discard const warning in swrap_bind()Michael Adam1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-10-02swrap: fix discard const warning in swrap_remove_stale()Michael Adam1-2/+2
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-10-02swrap: fix build when neither HAVE_STRUCT_IN_PKTINFO nor IP_RECVDSTADDR is ↵Michael Adam1-2/+1
defined Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-07-31waf: socket_wrapper should check for HAVE_FUNCTION_ATTRIBUTE_FORMAT.Andreas Schneider1-0/+12
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 31 21:12:07 CEST 2014 on sn-devel-104
2014-06-05lib: Bump socket_wrapper version to 1.1.1.Michael Adam1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-06-05swrap: Disable incomplete bind checks (and tests) for EADDRINUSE.Andreas Schneider1-1/+6
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-06-05lib: Bump socket_wrapper version to 1.1.0.Andreas Schneider1-1/+1
2014-06-05swrap: check whether an address:port is already in use in swrap_bind()Michael Adam1-0/+7
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-06-05swrap: implement check_addr_port_in_use()Michael Adam1-0/+83
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>