summaryrefslogtreecommitdiffstats
path: root/source3/lib/util_sock.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Remove smbd_server_fd from receive_smb_rawVolker Lendecke2010-08-171-25/+4
| | | | This is only called from client code
* s3: Lift smbd_server_fd() from read_smb_length_return_keepaliveVolker Lendecke2010-08-171-13/+24
|
* s3: Lift smbd_server_fd() from read_data()Volker Lendecke2010-08-171-19/+1
| | | | All callers have appropriate debug messages themselves
* s3: Lift smbd_server_fd() from read_fd_with_timeout()Volker Lendecke2010-08-171-43/+44
|
* s3-util: remove unused variable.Günther Deschner2010-08-171-1/+0
| | | | Guenther
* s3: Remove smbd_server_fd() from write_data()Volker Lendecke2010-08-171-20/+1
| | | | | | This completely removes the DEBUG(0, ..) error message from write_data(). I've gone through all callers of write_data() and made sure that they have their own equivalent error message printing.
* s3: Remove get_client_fd()Volker Lendecke2010-08-161-4/+4
|
* s3-util_sock: Rise debug level for getpeername failed messages.Karolin Seeger2010-03-261-4/+6
| | | | | | | | Don't show all getpeername failed messages in debug level 0 and 1. Karolin Signed-off-by: Volker Lendecke <vl@samba.org>
* libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett2009-09-151-115/+0
| | | | | | This starts the process to have Samba4 use lmhosts. Andrew Bartlett
* Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".Jeremy Allison2009-09-061-17/+25
| | | | | | | | | | Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed from sys_read() to sys_recv(). read_socket_with_timeout() is called with non-fd's (with a pty in chgpasswd.c and with a disk file in lib/dbwrap_file.c via read_data()). recv works for the disk file, but not the pty. Change the name of read_socket_with_timeout() to read_fd_with_timeout() to make this clear (and add comments). Jeremy.
* Save and report the correct errno value.Simo Sorce2009-09-051-8/+12
|
* (Hopefully) fix the problem Kai reported withJeremy Allison2009-07-281-5/+53
| | | | | | net ads leave and IPv6. Ensure all DC lookups prefer IPv4. Jeremy.
* s3: allow setting the TCP_QUICKACK socket optionBjörn Jacke2009-07-141-0/+3
|
* Make open_udp_socket() IPv6 clean. Trying to fix bug #6437 - Unable to join ↵Jeremy Allison2009-06-081-10/+25
| | | | | | | IPv6-only ads domain. Avaiting feedback from submitter before backport to 3.4 and earlier. Jeremy.
* Allow AF_UNIX for open_socket_outVolker Lendecke2009-06-061-0/+4
|
* Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke2009-05-181-6/+1
| | | | | | | | | | Jeremy as far as I can see there is no real technical reason to limit the number of interfaces. If you like this patch, can you please merge it to 3.4? If you don't please tell me :-) Thanks, Volker
* s3:libsmb: move read_smb_send/recv() static in async_smb.cStefan Metzmacher2009-05-131-87/+0
| | | | metze
* Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2009-05-121-2/+2
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* Add getaddrinfo_send/recvVolker Lendecke2009-05-011-0/+82
|
* Reactivate get_socket_portVolker Lendecke2009-04-121-4/+1
|
* s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().Günther Deschner2009-04-081-0/+4
| | | | Guenther
* Add read_smb_send/recv, dumping keepalivesVolker Lendecke2009-04-061-0/+87
|
* s3:lib/util_sock: use sys_recv() instead of sys_read() on socketsStefan Metzmacher2009-03-191-2/+2
| | | | | | This ways the pcap support in socket wrapper sees the received data. metze
* Convert open_socket_out_defer to tevent_reqVolker Lendecke2009-03-161-29/+29
|
* Use tevent_wakeup_send in open_socket_out_deferVolker Lendecke2009-03-161-22/+15
|
* Make struct tevent_req opaqueSimo Sorce2009-03-021-14/+11
| | | | | | | | | | | | | | | | Move struct tevent_req in tevent_internal, and ad getters and setters for private data and the callback function. This patch also renames 'private_state' into 'data'. What is held in this pointer is in fact data and not a state like enum tevent_req_state. Calling it 'state' is confusing. The functions addedd are: tevent_req_set_callback() - sets req->async.fn and req->async.private_data tevent_req_set_print_fn() - sets req->private_print tevent_req_callback_data() - gets req->async.private_data tevent_req_data() - gets rea->data This way it is much simpler to keep API/ABI compatibility in the future.
* Remove a temporary debug message -- sorryVolker Lendecke2009-02-261-1/+0
|
* Convert open_socket_out to tevent_reqVolker Lendecke2009-02-261-41/+41
|
* Convert async_connect to tevent_reqVolker Lendecke2009-02-241-13/+16
|
* s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty2009-02-091-4/+7
| | | | Fallback on EAGAIN
* async_sock: Use unix errnos instead of NTSTATUSKai Blin2009-02-091-9/+9
| | | | | This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would be pointless to convert to errno first and to wbcErr later.
* Next step disentangling async_req from NTSTATUSVolker Lendecke2009-02-021-2/+2
| | | | Now I need to document this :-)
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-011-13/+13
|
* Add a macro async_req_setup()Volker Lendecke2009-01-181-16/+4
| | | | This streamlines setting up a multi-step async request a bit
* "First thing, kill all the language lawyers" :-). Ensure possible insane ↵Jeremy Allison2009-01-161-1/+1
| | | | | | | compilers can't kill us later. Jeremy.
* Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.Jeremy Allison2009-01-151-4/+5
| | | | Jeremy.
* Remove a duplicated commentVolker Lendecke2009-01-041-4/+0
|
* Add open_socket_out_defer_send/recvVolker Lendecke2009-01-041-0/+111
|
* Async wrapper for open_socket_out_send/recvVolker Lendecke2009-01-041-56/+168
|
* open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke2009-01-031-9/+3
|
* Make write_data use write_data_iovVolker Lendecke2008-12-291-24/+24
|
* Add write_data_iovVolker Lendecke2008-12-291-0/+69
|
* s3: Use DEBUGADD instead of DEBUG to avoid printing the headerDan Sledz2008-12-151-2/+3
|
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-5/+5
| | | | Also eliminates name conflicts with OneFS system libraries
* Move set_sockaddr_port to libutil.Jelmer Vernooij2008-10-231-12/+0
|
* Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-231-392/+1
|
* Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-231-45/+44
| | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* Add data_blob_string_const_null() function that includes the terminatingJelmer Vernooij2008-10-131-6/+6
| | | | | | null byte and use it in Samba 3. This matches the behaviour prior to my data_blob changes.
* Cleanup of DC enumeration in get_dcs()Steven Danneman2008-09-041-5/+16
| | | | | | | | | | | | This is a fix for a few small inefficiencies/bugs in the get_dcs() path. * because the third add_one_dc_unique() loop was outside the ADS check all DCs returned from the non-sitename lookup were being tacked onto the dc_name_ip list twice. * add_one_dc_unique() now checks if the given IP address already exists before adding it to the list, making the returned list actually unique * added more thorough doxygen comment headers (This used to be commit cb2d488e1dbd90953c496c5e25d648977884f7e3)
* Fix various build warningsZach Loafman2008-07-221-2/+2
| | | | | | This fixes various build warnings on our platform. I'm sure I haven't caught them all, but it's a start. (This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)