Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-08-10 | tsocket: make use of tevent_queue_add_optimize_empty() to optimize for the ↵ | Stefan Metzmacher | 1 | -37/+48 | |
empty queue case metze | |||||
2011-06-20 | Use tevent_req_oom | Volker Lendecke | 1 | -3/+3 | |
This fixes a few Coverity errors | |||||
2010-11-05 | tsocket: fill in sa.sa_len if the system supports it | Stefan Metzmacher | 1 | -0/+12 | |
metze | |||||
2010-10-31 | s4: Remove the old perl/m4/make/mk-based build system. | Jelmer Vernooij | 1 | -13/+0 | |
The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104 | |||||
2010-10-23 | tsocket: let tstream_inet_tcp_connect_recv() optionally return the used ↵ | Stefan Metzmacher | 2 | -5/+11 | |
local address tstream_inet_tcp_connect_send() usually only gets no local port number and it may use the wildcard address '0.0.0.0' or '::'. tstream_inet_tcp_connect_recv() provides the used local address and port which are used on the wire. metze | |||||
2010-10-23 | tsocket: ask the kernel for the specific local address after a tcp connect | Stefan Metzmacher | 1 | -3/+54 | |
metze | |||||
2010-10-04 | tsocket: make sure we delete the fd event before calling close() | Stefan Metzmacher | 1 | -0/+1 | |
We got random double free errors, when getting events from epoll_wait() and try to dereference the private talloc pointer attached to it. Before doing the close() in the tstream_disconnect_send() function we need to delete the fd event. commit 38f505530ba06323a56c7d3914630efffcd12629 only fixed it for tdgram sockets. metze | |||||
2010-09-28 | tsocket: make sure we delete the fd event before calling close() | Stefan Metzmacher | 1 | -0/+1 | |
We got random double free errors, when getting events from epoll_wait() and try to dereference the private talloc pointer attached to it. Before doing the close() in the tstream_disconnect_send() function we need to delete the fd event. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 28 01:02:55 UTC 2010 on sn-devel-104 | |||||
2010-09-15 | tsocket: we return -1 on error, not fd | Andrew Tridgell | 1 | -7/+7 | |
the code used this pattent: if (fd < 0) { ...various cleanups... return fd; } it is much clearer to do this: if (fd < 0) { ...various cleanups... return -1; } as otherwise when reading the code you think this function may return a fd. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> | |||||
2010-08-28 | Revert "lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen" | Stefan Metzmacher | 3 | -39/+39 | |
This reverts commit 3d4fb698660381e650d7caeb5b7cff12847c0fb8. This was wrong... The problem was in the caller, sa_len is a macro on irix metze | |||||
2010-08-27 | lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen | Stefan Metzmacher | 3 | -39/+39 | |
metze | |||||
2010-08-15 | s3: Fix a typo | Volker Lendecke | 1 | -1/+1 | |
2010-07-11 | tsocket: Fix some unreachable code | Volker Lendecke | 1 | -2/+1 | |
2010-06-21 | tsocket: Fix some type-punned warnings | Volker Lendecke | 1 | -2/+2 | |
2010-05-19 | tsocket: Improve the language in some parts of the guide. | Simo Sorce | 1 | -41/+37 | |
2010-05-05 | tsocket: Added the warning again to tsocket_address_bsd_sockaddr. | Andreas Schneider | 1 | -0/+3 | |
2010-05-03 | tsocket: Fixed the documentation of tsocket_address_bsd_sockaddr. | Andreas Schneider | 1 | -6/+13 | |
2010-04-27 | lib/tsocket: add tsocket_address_is_unix() function | Stefan Metzmacher | 2 | -0/+29 | |
metze | |||||
2010-04-27 | lib/tsocket: add tsocket_address_is_inet() function | Stefan Metzmacher | 2 | -0/+54 | |
metze | |||||
2010-04-24 | Revert "tsocket: not all systems have IPV6_V6ONLY" | Stefan Metzmacher | 1 | -2/+2 | |
This reverts commit 63fc3978089df403d7e63462593784ff3d05e6e7. We now don't support IPv6 when IPV6_V6ONLY isn't available, as we rely on the behavior. metze | |||||
2010-04-12 | s4-waf: inline LIBREPLACE_NETWORK into 'replace' | Stefan Metzmacher | 1 | -1/+0 | |
metze | |||||
2010-04-08 | tsocket_bsd: Always use a real length for the sa_socklen, and keep it around | Andrew Bartlett | 1 | -68/+16 | |
The previous code assumed the OS would happily accept sizeof(struct sockaddr_storage). It seems some versions of Solaris do not like this. Andrew Bartlett | |||||
2010-04-06 | s4-waf: removed the AUTOGENERATED markers | Andrew Tridgell | 1 | -3/+0 | |
we won't be using the mk -> wscript generator again | |||||
2010-04-06 | s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵ | Andrew Tridgell | 1 | -0/+2 | |
them | |||||
2010-04-06 | build: commit all the waf build files in the tree | Andrew Tridgell | 1 | -0/+11 | |
2010-03-26 | tsocket: not all systems have IPV6_V6ONLY | Andrew Tridgell | 1 | -2/+2 | |
2010-02-26 | tsocket: Improve the tsocket_address_bsd_sockaddr documentation. | Andreas Schneider | 1 | -1/+3 | |
Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2010-02-22 | Spelling fixes for tsocket API documentation. | Brad Hards | 1 | -14/+14 | |
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | |||||
2010-02-18 | tsocket/bsd: fix comment in tdgram_bsd_recvfrom_handler() | Stefan Metzmacher | 1 | -2/+4 | |
metze | |||||
2010-02-17 | Fix commit d07cd37b993d3c9beded20323174633b806196b5 | Jeremy Allison | 1 | -1/+4 | |
Which was: tsocket/bsd: fix bug #7115 FreeBSD includes the UDP header in FIONREAD Metze, this has to have been wrong - you are throwing away the talloc_realloc pointer returned. Also no error checking. Please review. Thank goodness for gcc warnings :-). Jeremy. | |||||
2010-02-17 | tsocket/bsd: fix bug #7115 FreeBSD includes the UDP header in FIONREAD | Stefan Metzmacher | 1 | -4/+6 | |
metze | |||||
2010-02-17 | tsocket/bsd: set IPV6_V6ONLY on AF_INET6 sockets | Stefan Metzmacher | 1 | -0/+36 | |
Some system already have this as default. It's easier to behave the same way on all systems and handle ipv6 and ipv4 sockets separate. metze | |||||
2010-02-17 | tsocket/bsd: fix bug #7140 autodetect ipv4 and ipv6 based on the remote ↵ | Stefan Metzmacher | 1 | -2/+53 | |
address if the local address is any metze | |||||
2010-02-17 | tsocket/bsd: fix bug #7140 use calculated sa_socklen for bind() in ↵ | Stefan Metzmacher | 1 | -1/+1 | |
tstream_bsd_connect_send() This is needed because, we can't use sizeof(sockaddr_storage) for AF_UNIX sockets. Also some platforms require exact values for AF_INET and AF_INET6. metze | |||||
2010-02-17 | tsocket/bsd: fix do_bind logic for AF_INET | Stefan Metzmacher | 1 | -2/+2 | |
We want the explicit bind() when we don't use the any address. metze | |||||
2010-01-28 | tsocket: Fix the description of tstream_writev_queue_send/recv | Kai Blin | 1 | -6/+6 | |
2010-01-28 | tsocket: Fix description for tstream_readv_pdu_queue_send/recv | Kai Blin | 1 | -7/+6 | |
2010-01-11 | tsocket: Added doxygen config file. | Andreas Schneider | 1 | -0/+1538 | |
Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2010-01-11 | tsocket: Added complete doxygen documentation. | Andreas Schneider | 2 | -63/+834 | |
Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2009-12-24 | tsocket: only copy the specific part of sockaddr* | Stefan Metzmacher | 1 | -0/+5 | |
This makes sure we fill the unspefic bytes with 0 and have zero termination for sockaddr_un. metze | |||||
2009-12-24 | tsocket: allow AF_UNIX sockaddrs smaller than sizeof(sockaddr_un) | Stefan Metzmacher | 1 | -4/+5 | |
This is needed as getpeername() truncates the length to 2 if the peer socket has no name. metze | |||||
2009-12-15 | tsocket: Fixed tsocket_guide.txt asciidoc syntax. | Andreas Schneider | 1 | -148/+161 | |
2009-12-15 | tsocket: Fixed documentation for tsocket_address_bsd_sockaddr(). | Andreas Schneider | 1 | -6/+5 | |
2009-12-15 | tsocket: Fixed typo in LGPL header. | Andreas Schneider | 5 | -5/+5 | |
2009-12-15 | tsocket: add tsocket_address_bsd_sockaddr() and ↵ | Stefan Metzmacher | 3 | -5/+87 | |
tsocket_address_bsd_from_sockaddr() metze | |||||
2009-11-03 | tsocket: rewrite tsocket_guide.txt to reflect the current APIs | Stefan Metzmacher | 1 | -467/+413 | |
metze | |||||
2009-11-03 | tsocket_bsd: return -1 and set errno to ENAMETOOLONG if the unix path is too ↵ | Stefan Metzmacher | 1 | -1/+6 | |
long metze | |||||
2009-11-03 | tsocket: remove prototype of non-existing tsocket_address_inet_set_broadcast() | Stefan Metzmacher | 1 | -2/+0 | |
metze | |||||
2009-07-16 | tsocket: rename sa_len => sa_socklen, because sa_len is a macro on some ↵ | Stefan Metzmacher | 1 | -21/+21 | |
platforms metze | |||||
2009-06-29 | tsocket/bsd: also ask for TEVENT_FD_READ when we want to write into a stream ↵ | Stefan Metzmacher | 1 | -2/+9 | |
socket Otherwise we would not notice a broken connection. metze |