summaryrefslogtreecommitdiff
path: root/lib/socket_wrapper/socket_wrapper.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-09socket_wrapper: fix handling of addr and addrlenStefan Metzmacher1-4/+5
metze
2011-03-04lib/socket_wrapper: try to fix the build on solarisStefan Metzmacher1-0/+13
struct msg does not contain msg_control, msg_controllen and msg_flags on solaris. metze
2011-03-03socket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev()Stefan Metzmacher1-49/+17
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Mar 3 23:43:39 CET 2011 on sn-devel-104
2011-03-03socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg()Stefan Metzmacher1-47/+66
This also adds the same logic for broadcast as in swrap_sendto() for SOCK_DGRAM. metze
2011-03-03socket_wrapper: use swrap_sendmsg_before()/after() in swrap_send()Stefan Metzmacher1-37/+18
metze
2011-03-03socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto()Stefan Metzmacher1-86/+35
metze
2011-03-03socket_wrapper: add swrap_sendmsg_before/after helper functionsStefan Metzmacher1-0/+191
Currently have almost the same logic in swrap_send(), swrap_sendto(), swrap_writev() and swrap_sendmsg(), this helper functions let combine all the logic in 2 places. metze
2011-03-03socket_wrapper: readv() should only work on connected socketsStefan Metzmacher1-0/+5
metze
2011-03-03socket_wrapper: move swrap_ioctl() above the send*/recv* functionsStefan Metzmacher1-26/+26
metze
2011-03-03socket_wrapper: fix compiler warningsStefan Metzmacher1-28/+37
metze
2011-03-03socket_wrapper: don't allow connect() to the broadcast addressStefan Metzmacher1-1/+8
This will simplify other code later. metze
2011-02-13Fix some nonempty blank linesVolker Lendecke1-18/+18
2011-02-10socket_wrapper: avoid c++ style comments.Günther Deschner1-2/+2
Seen on the aix s3-waf build where it causes the build to fail. Guenther
2010-11-05socket_wrapper: fill in sa.sa_len if the system supports itStefan Metzmacher1-2/+12
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 5 14:40:00 UTC 2010 on sn-devel-104
2010-10-10socket_wrapper: Make it work on freebsd for udp packetsStefan Metzmacher1-1/+11
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Oct 10 12:57:00 UTC 2010 on sn-devel-104
2010-04-08Revert "socket-wrapper: not all systems have FIONREAD defined"Stefan Metzmacher1-2/+0
This reverts commit 710aa773d54509de34404f9992c5058ddfa45f3b. We rely on FIONREAD in a lot of other parts in the code, so there's no need to have an ifdef for it in the socket_wrapper code. On tru64 FIONREAD is defined in <sys/ioctl.h> and we include <sys/ioctl.h> via "system/network.h". Tridge: maybe a HAVE_SYS_IOCTL_H was missing at the time you tried it on tru64? If we find a platform that doesn't support it, we need to bail out at configure time or provide a replacement in libreplace. metze
2010-04-03socket-wrapper: not all systems have FIONREAD definedAndrew Tridgell1-0/+2
tru64 for example
2010-02-17socket_wrapper: also ignore AF_INET6 in swrap_setsockopt()Stefan Metzmacher1-0/+4
metze
2009-09-08socket_wrapper: swrap_read() should use SWRAP_RECV* for swrap_dump_packet()Stefan Metzmacher1-5/+3
This is the same as swrap_recv(). metze
2009-09-07Add read() to socketwrapper. Metze please check.Jeremy Allison1-1/+32
Jeremy.
2009-06-19Partially revert restriction of socket_wrapper to 1500 byte writesAndrew Bartlett1-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
2009-06-09fixed socket wrapper to determine family from the right structureAndrew Tridgell1-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.
2009-06-04socket_wrapper Cope with SOCK_CLOEXEC and SOCK_NONBLOCK flagsAndrew Bartlett1-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
2009-05-26Add support for sendmsg() in socket_wrapperAndrew Bartlett1-0/+71
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
2009-04-14socket_wrapper: fix the build on systems without ipv6 supportStefan Metzmacher1-0/+2
metze
2009-04-10socket_wrapper: fix crash bug in swrap_readv/writevStefan Metzmacher1-4/+10
metze
2009-03-23socket_wrapper: fix connect() for dgram sockets, if the destination isn't ↵Stefan Metzmacher1-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
2009-03-22Revert "socket_wrapper: fix connect() for dgram sockets, if the destination ↵Stefan Metzmacher1-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
2009-03-21socket_wrapper: fix connect() for dgram sockets, if the destination isn't ↵Stefan Metzmacher1-3/+7
there yet metze
2009-03-10socket_wrapper: wrap readv() and writev()Stefan Metzmacher1-7/+125
metze
2009-03-09socket_wrapper: try to make ipv6 support more portableStefan Metzmacher1-9/+22
The internal structure of in6_addr isn't always the same. metze
2009-03-08socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest ↵Stefan Metzmacher1-5/+13
is ipv4 We only do this if the socket isn't explicit bound yet. metze
2009-03-08socket_wrapper: correctly handle connected dgram socketsStefan Metzmacher1-0/+26
metze
2009-03-08socket_wrapper: make it possible to bind to '::'Stefan Metzmacher1-1/+3
metze
2009-03-04socket wrapper: Fix 'might be used uninitialized' warningTim Prouty1-4/+4
2009-03-04socket_wrapper: add multiple interface support for ipv6Stefan Metzmacher1-10/+39
We use FD00::5357:5FXX in the same way we use 127.0.0.XX metze
2009-03-04socket_wrapper: add ipv6 pcap supportStefan Metzmacher1-3/+87
metze
2009-03-04socket_wrapper: pass down sockaddr instead of sockaddr_in to prepare pcap ↵Stefan Metzmacher1-78/+100
support for ipv6 metze
2009-03-04socket_wrapper: prepare pcap support for ipv6 trafficStefan Metzmacher1-148/+170
metze
2009-03-04socket_wrapper: don't crash if we get EAGAIN from real_recv()Stefan Metzmacher1-1/+1
This fixes a crash in the ldaps tests with socket wrapper pcap support. metze
2009-01-20socket_wrapper: fix PCAP support broken by ↵Stefan Metzmacher1-3/+1
aaea68791cfea45c6fa69abc93ad6d0e832d0283 We should note close the fd after writing the first packet. metze
2008-12-22In gcc version 4.3.2 we get warnings for functions declared withJeremy Allison1-2/+10
attribute warn_unused_result. Start to fix these. Jeremy.
2008-10-07Changed variable name from f19086872ec734fff3f2119712ff24117bec4e5e to match ↵Tim Prouty1-19/+19
v3-[23]-test
2008-10-06Fixed "declaration shadows global declaration" warnings.Tim Prouty1-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
2008-09-17Move common libraries from root to lib/.Jelmer Vernooij1-0/+1841