summaryrefslogtreecommitdiffstats
path: root/source/lib/util_sock.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix send and recvfrom.Jeremy Allison2002-04-191-11/+11
| | | | Jeremy.
* First cut at fix for the EINTR problem... More needs to be done I think.Jeremy Allison2002-04-191-136/+130
| | | | Jeremy.
* Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison2002-03-231-1/+1
| | | | | cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy.
* Only set smb_read_error if not already set.Jeremy Allison2002-02-231-6/+20
| | | | Jeremy.
* Back out 1.16.2.3:Martin Pool2002-02-151-1/+5
| | | | | | receive_smb: You might think that we ought to set smb_read_error here, but apparently that breaks the recursive main loop in oplock.c. Global variables suck. :-/
* Fix from Michael Steffens <michael_steffens@hp.com> to make signalJeremy Allison2002-01-311-2/+2
| | | | | | processing work correctly in winbindd. This is a really good patch that gives full select semantics to the Samba modified select. Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Having a const parameter for set_socket_options() causes too much confusion.Tim Potter2002-01-221-1/+1
|
* Removed freebsd hack. Not correct.Jeremy Allison2002-01-211-4/+0
| | | | Jeremy.
* This is the current patch from Luke Leighton <lckl@samba-tng.org> to add aAndrew Bartlett2002-01-201-12/+27
| | | | | | | | | | | | | | | | | | degree of seperation betwen reading/writing the raw NamedPipe SMB packets and the matching operations inside smbd's RPC components. This patch is designed for no change in behaviour, and my tests hold that to be true. This patch does however allow for the future loadable modules interface to specify function pointers in replacement of the fixed state. The pipes_struct has been split into two peices, with smb_np_struct taking the information that should be generic to where the data ends up. Some other minor changes are made: we get another small helper function in util_sock.c and some of the original code has better failure debugs and variable use. (As per on-list comments). Andrew Bartlett
* Added #ifdef for FreeBSD TCP bug.Jeremy Allison2002-01-191-0/+4
| | | | Jeremy.
* Add constness to filenames passed to functions.Martin Pool2002-01-151-1/+1
|
* A couple of coding syle updates to follow the re-indent.Andrew Bartlett2002-01-131-5/+5
|
* Re-indent these two functions to make it actually possible to understand theirAndrew Bartlett2002-01-131-161/+161
| | | | | | contents... Andrew Bartlett
* I'm doing some things towards the NamedPipes game with lckl and he has asked meAndrew Bartlett2002-01-131-1/+103
| | | | | | | | | | to move this from being a static to matching its mate in lib/util_sock.c. In any case, this should discorage anybody from using the 'wrong' version of this function. (ie the one from TNG, which needs a bit more error checking depending on use). Andrew Bartlett
* fixed warnings on irix and crash bug on big endian machinesAndrew Tridgell2001-12-201-1/+1
|
* added "net join" commandAndrew Tridgell2001-11-241-0/+31
| | | | this completes the first stage of the smbd ADS support
* Removed unused function.Tim Potter2001-10-241-68/+0
|
* Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter2001-10-201-4/+4
|
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
|
* OpenSSL merge from 2.2Gerald Carter2001-09-261-1/+1
|
* added a new global option "hostname lookups = yes/no"Andrew Tridgell2001-09-131-0/+8
| | | | | | | | This should finally kill off the remaining places where we attempt reverse lookups of the IP of the client. It may be that some pam modules called via the session code will need "hostname lookups = yes" but I've left it off by default as most sites don't need it and so many sites have broken reverse maps
* fixed typoAndrew Tridgell2001-08-281-1/+1
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-1/+1
|
* bzero is not used (deprecated) as it's a BSDism.Jeremy Allison2001-08-261-62/+52
| | | | | | Syscalls must check for -1, not < 0 (POSIX). Formating (tab) fixups. Jeremy.
* Fussing with debug lines in open_socket_in(). I cleaned up some slightlyChristopher R. Hertel2001-08-261-32/+56
| | | | | | | | funky code that was simply setting a local int to 0 or 1 and also added calls to strerror() in some of the debug lines. The use of the dlevel parameter in this function is a little awkward. There should probably be some comments about it in the source.
* get rid of old debug code and possible socket leakHerb Lewis2001-08-241-9/+1
|
* better error reporting for servers that don't do port 445Andrew Tridgell2001-08-231-1/+1
|
* much better handling of broken DNS serversAndrew Tridgell2001-07-101-16/+2
| | | | | | we no longer lookup our own name when we create a socket in open_socket_in(). That makes things work much better with the broken DNS server at VA
* use alpha_strcpy on DNS namesAndrew Tridgell2001-07-051-0/+6
|
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-1/+1
| | | | can't redefine them. damn.
* fixed socketpair_tcp for OpenBSDAndrew Tridgell2001-07-031-4/+9
|
* Syncup between 2.2 and HEAD.Jeremy Allison2001-06-271-17/+16
| | | | Jeremy.
* on sco2 socketpair_tcp needs a bindAndrew Tridgell2001-06-271-0/+9
|
* handle EISCONN in socketpair_tcpAndrew Tridgell2001-06-271-1/+2
| | | | this should get the auto-tests working on IRIX
* - make the regresison test mode code build in by default. This shouldAndrew Tridgell2001-06-251-15/+13
| | | | | allow us to have test targets without special configure options - fixed make proto so that it actually does something
* added the ability to test smbd safely as an ordinary user. The way it works isAndrew Tridgell2001-06-221-0/+81
| | | | | | | | | | | | | | | | | | | | | | | that libsmb/ creates a local tcp socket then launches smbd as a subprocess attached to that socket. smbd thinks it is being launched from inetd. to use it do the following: - compile with -DSMB_REGRESSION_TEST - run like this (also works with smbtorture etc) export SMBD_TEST=1 export LIBSMB_PROG=bin/smbd smbclient //server/share -Uuser%pass obviously you need to setup a smb.conf etc. Using --prefix to configure is useful. The aim of all this stuff is to add a decent set of regression tests to the build farm, so we know if smbd actually runs correctly on all the platforms, not just builds. We can run smbtorture, masktest, locktest etc, plus a bunch of smbclient scripts and any new tests we write. This doesn't help much with nmbd (at least not yet) but its a good start.
* Removed silly Get_Hostbyname() wrapper as DNS names are case-insensitiveTim Potter2001-06-181-4/+4
| | | | | and the use of this function only increased timeouts when Samba queries a broken DNS server.
* *Wonderful* patch from Andrew Bartlett that will help ensure tdb's areJeremy Allison2001-06-091-45/+19
| | | | | cleaned on clients abending connections. Thanks Andrew ! Jeremy.
* Changes to use new genrand code that got missed while I was in Japan.Jeremy Allison2001-06-061-21/+0
| | | | Jeremy.
* Fixup the large_writex problem (a large_writex can send a full 64k of data,Jeremy Allison2001-05-241-24/+27
| | | | | we already have space for this we just need to understand the length correctly). Jeremy.
* Bumped up debug level on set socket options from 3 to 5.Tim Potter2001-05-101-2/+2
|
* Print socket options - patch from Dave Collier-Brown @ Sun.Jeremy Allison2000-10-061-2/+23
| | | | Jeremy.
* Linux kernel oplocks now seem to work, but need a _lot_ of testingAndrew Tridgell2000-06-111-2/+2
| | | | | I had to modify sys_select() to not loop on EINTR. I added a wrapper called sys_select_intr() which gives the old behaviour.
* - got rid of the "passive" optionAndrew Tridgell2000-04-191-7/+0
| | | | - cleaned up the standard_sub_*() calls a lot
* use interpret_addr2() instead of inet_aton()Andrew Tridgell2000-04-141-1/+1
|
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-65/+89
| | | | | | | | | | | | | | | | assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed.
* Added support for SO_REUSEPORT for systems that have it.Jeremy Allison2000-02-161-1/+11
| | | | Jeremy.
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-031-0/+100
| | | | to using internal msrpc code in smbd.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-224/+305
|