summaryrefslogtreecommitdiffstats
path: root/lib/socket_wrapper
Commit message (Collapse)AuthorAgeFilesLines
* socket_wrapper: also ignore AF_INET6 in swrap_setsockopt()Stefan Metzmacher2010-02-171-0/+4
| | | | metze
* socket_wrapper: swrap_read() should use SWRAP_RECV* for swrap_dump_packet()Stefan Metzmacher2009-09-081-5/+3
| | | | | | This is the same as swrap_recv(). metze
* Add read() to socketwrapper. Metze please check.Jeremy Allison2009-09-072-1/+38
| | | | Jeremy.
* Partially revert restriction of socket_wrapper to 1500 byte writesAndrew Bartlett2009-06-191-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
* fixed socket wrapper to determine family from the right structureAndrew Tridgell2009-06-091-1/+1
| | | | | | | | In convert_in_un_remote() the socket family can be accessed either as si->family or inaddr->sa_family. We were using the si->family to determine how to cast the inaddr structure, but if si->family != inaddr->sa_family then we will incorrectly be casting a in6 structure as in4 or vice-versa.
* socket_wrapper Cope with SOCK_CLOEXEC and SOCK_NONBLOCK flagsAndrew Bartlett2009-06-041-4/+16
| | | | | | | | | | Heimdal will, on supporting systems, set these flags in the type argument of socket(), causing breakage when combined with socket_wrapper. For background on these flags, see http://lwn.net/Articles/281965/ Andrew Bartlett
* Add support for sendmsg() in socket_wrapperAndrew Bartlett2009-05-262-0/+77
| | | | | | | | This is required because the deferred connect code skips the connect() until sending the packet, but unless we catch this call, the connect() never happens. Andrew Bartlett
* socket_wrapper: fix the build on systems without ipv6 supportStefan Metzmacher2009-04-141-0/+2
| | | | metze
* socket_wrapper: fix crash bug in swrap_readv/writevStefan Metzmacher2009-04-101-4/+10
| | | | metze
* socket_wrapper: fix connect() for dgram sockets, if the destination isn't ↵Stefan Metzmacher2009-03-231-4/+52
| | | | | | | | | | | | there yet Now we defer the real_connect() for dgram sockets to the first send()/sendto() call, as the destination might not be there at connect time. Commit 66dc53ee017d74a6f610bbe04337f064901fe2a1 was an incomplete fix for this problem. metze
* Revert "socket_wrapper: fix connect() for dgram sockets, if the destination ↵Stefan Metzmacher2009-03-221-7/+3
| | | | | | | | | | | isn't there yet" This reverts commit 66dc53ee017d74a6f610bbe04337f064901fe2a1. Somehow this leads to timeouts in some tests, samba4.ldb.ldapi and samba4.rpc.schannel. I need to look at it more closely later... metze
* socket_wrapper: fix connect() for dgram sockets, if the destination isn't ↵Stefan Metzmacher2009-03-211-3/+7
| | | | | | there yet metze
* socket_wrapper: wrap readv() and writev()Stefan Metzmacher2009-03-102-7/+137
| | | | metze
* socket_wrapper: try to make ipv6 support more portableStefan Metzmacher2009-03-091-9/+22
| | | | | | The internal structure of in6_addr isn't always the same. metze
* socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest ↵Stefan Metzmacher2009-03-081-5/+13
| | | | | | | | is ipv4 We only do this if the socket isn't explicit bound yet. metze
* socket_wrapper: correctly handle connected dgram socketsStefan Metzmacher2009-03-081-0/+26
| | | | metze
* socket_wrapper: make it possible to bind to '::'Stefan Metzmacher2009-03-081-1/+3
| | | | metze
* socket wrapper: Fix 'might be used uninitialized' warningTim Prouty2009-03-041-4/+4
|
* socket_wrapper: add multiple interface support for ipv6Stefan Metzmacher2009-03-041-10/+39
| | | | | | We use FD00::5357:5FXX in the same way we use 127.0.0.XX metze
* socket_wrapper: add ipv6 pcap supportStefan Metzmacher2009-03-041-3/+87
| | | | metze
* socket_wrapper: pass down sockaddr instead of sockaddr_in to prepare pcap ↵Stefan Metzmacher2009-03-041-78/+100
| | | | | | support for ipv6 metze
* socket_wrapper: prepare pcap support for ipv6 trafficStefan Metzmacher2009-03-041-148/+170
| | | | metze
* socket_wrapper: don't crash if we get EAGAIN from real_recv()Stefan Metzmacher2009-03-041-1/+1
| | | | | | This fixes a crash in the ldaps tests with socket wrapper pcap support. metze
* socket_wrapper: fix PCAP support broken by ↵Stefan Metzmacher2009-01-201-3/+1
| | | | | | | | aaea68791cfea45c6fa69abc93ad6d0e832d0283 We should note close the fd after writing the first packet. metze
* Fix indentation for some configure options.Jelmer Vernooij2009-01-151-1/+1
|
* In gcc version 4.3.2 we get warnings for functions declared withJeremy Allison2008-12-221-2/+10
| | | | | attribute warn_unused_result. Start to fix these. Jeremy.
* Changed variable name from f19086872ec734fff3f2119712ff24117bec4e5e to match ↵Tim Prouty2008-10-071-19/+19
| | | | v3-[23]-test
* Fixed "declaration shadows global declaration" warnings.Tim Prouty2008-10-061-19/+19
| | | | | | | | | | The patch simply uses a more descriptive variable name for tcp_seq. ../lib/socket_wrapper/socket_wrapper.c:753: warning: declaration of 'tcp_seq' shadows a global declaration /usr/include/netinet/tcp.h:40: warning: shadowed declaration is here ../lib/socket_wrapper/socket_wrapper.c: In function `swrap_marshall_packet': ../lib/socket_wrapper/socket_wrapper.c:919: warning: declaration of 'tcp_seq' shadows a global declaration /usr/include/netinet/tcp.h:40: warning: shadowed declaration is here
* Move common libraries from root to lib/.Jelmer Vernooij2008-09-175-0/+2112