summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-17s3: Lift smbd_server_fd() from read_fd_with_timeout()Volker Lendecke1-43/+44
2010-08-17s3-util: remove unused variable.Günther Deschner1-1/+0
Guenther
2010-08-17s3: Remove smbd_server_fd() from write_data()Volker Lendecke1-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.
2010-08-16s3: Remove get_client_fd()Volker Lendecke1-4/+4
2010-03-26s3-util_sock: Rise debug level for getpeername failed messages.Karolin Seeger1-4/+6
Don't show all getpeername failed messages in debug level 0 and 1. Karolin Signed-off-by: Volker Lendecke <vl@samba.org>
2009-09-15libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett1-115/+0
This starts the process to have Samba4 use lmhosts. Andrew Bartlett
2009-09-06Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".Jeremy Allison1-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.
2009-09-05Save and report the correct errno value.Simo Sorce1-8/+12
2009-07-28(Hopefully) fix the problem Kai reported withJeremy Allison1-5/+53
net ads leave and IPv6. Ensure all DC lookups prefer IPv4. Jeremy.
2009-07-14s3: allow setting the TCP_QUICKACK socket optionBjörn Jacke1-0/+3
2009-06-08Make open_udp_socket() IPv6 clean. Trying to fix bug #6437 - Unable to join ↵Jeremy Allison1-10/+25
IPv6-only ads domain. Avaiting feedback from submitter before backport to 3.4 and earlier. Jeremy.
2009-06-06Allow AF_UNIX for open_socket_outVolker Lendecke1-0/+4
2009-05-18Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke1-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
2009-05-13s3:libsmb: move read_smb_send/recv() static in async_smb.cStefan Metzmacher1-87/+0
metze
2009-05-12Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison1-2/+2
should quieten some warnings with picky compilers on the buildfarm. Jeremy.
2009-05-01Add getaddrinfo_send/recvVolker Lendecke1-0/+82
2009-04-12Reactivate get_socket_portVolker Lendecke1-4/+1
2009-04-08s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().Günther Deschner1-0/+4
Guenther
2009-04-06Add read_smb_send/recv, dumping keepalivesVolker Lendecke1-0/+87
2009-03-19s3:lib/util_sock: use sys_recv() instead of sys_read() on socketsStefan Metzmacher1-2/+2
This ways the pcap support in socket wrapper sees the received data. metze
2009-03-16Convert open_socket_out_defer to tevent_reqVolker Lendecke1-29/+29
2009-03-16Use tevent_wakeup_send in open_socket_out_deferVolker Lendecke1-22/+15
2009-03-02Make struct tevent_req opaqueSimo Sorce1-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.
2009-02-26Remove a temporary debug message -- sorryVolker Lendecke1-1/+0
2009-02-26Convert open_socket_out to tevent_reqVolker Lendecke1-41/+41
2009-02-24Convert async_connect to tevent_reqVolker Lendecke1-13/+16
2009-02-09s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty1-4/+7
Fallback on EAGAIN
2009-02-09async_sock: Use unix errnos instead of NTSTATUSKai Blin1-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.
2009-02-02Next step disentangling async_req from NTSTATUSVolker Lendecke1-2/+2
Now I need to document this :-)
2009-02-01Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke1-13/+13
2009-01-18Add a macro async_req_setup()Volker Lendecke1-16/+4
This streamlines setting up a multi-step async request a bit
2009-01-16"First thing, kill all the language lawyers" :-). Ensure possible insane ↵Jeremy Allison1-1/+1
compilers can't kill us later. Jeremy.
2009-01-15Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.Jeremy Allison1-4/+5
Jeremy.
2009-01-04Remove a duplicated commentVolker Lendecke1-4/+0
2009-01-04Add open_socket_out_defer_send/recvVolker Lendecke1-0/+111
2009-01-04Async wrapper for open_socket_out_send/recvVolker Lendecke1-56/+168
2009-01-03open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke1-9/+3
2008-12-29Make write_data use write_data_iovVolker Lendecke1-24/+24
2008-12-29Add write_data_iovVolker Lendecke1-0/+69
2008-12-15s3: Use DEBUGADD instead of DEBUG to avoid printing the headerDan Sledz1-2/+3
2008-12-03s3: Change sockaddr util function names for consistencyTim Prouty1-5/+5
Also eliminates name conflicts with OneFS system libraries
2008-10-23Move set_sockaddr_port to libutil.Jelmer Vernooij1-12/+0
2008-10-23Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij1-392/+1
2008-10-23Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij1-45/+44
otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
2008-10-13Add data_blob_string_const_null() function that includes the terminatingJelmer Vernooij1-6/+6
null byte and use it in Samba 3. This matches the behaviour prior to my data_blob changes.
2008-09-04Cleanup of DC enumeration in get_dcs()Steven Danneman1-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)
2008-07-22Fix various build warningsZach Loafman1-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)
2008-07-08Minor style correctionZach Loafman1-2/+2
Set sin[6]_family instead of ss_family in in[6]_addr_to_sockaddr_storage so that assignments look like they're going to the same place. (This used to be commit 3d19112f645fb0f4bb6b644207ed2cee0b6b3ea9)
2008-05-28Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison1-13/+5
can result in a buffer overrun. Jeremy. (This used to be commit 23b825e9d2c74c5b940cf4d3aa56c18692259972)
2008-04-07increase log level for this failed setsockopt call. EINVAL is a normal error ↵Björn Jacke1-1/+4
on Solaris when we do this on an already resetted connection. (This used to be commit 42bc4ff7fd6bfc92bde015ae8f3a9fb62d443cd5)