summaryrefslogtreecommitdiffstats
path: root/source3/lib/util_sock.c
Commit message (Collapse)AuthorAgeFilesLines
...
* get rid of old debug code and possible socket leakHerb Lewis2001-08-241-9/+1
| | | | (This used to be commit f942397d6515402be0c7c1085fc2e6d48eb6928f)
* better error reporting for servers that don't do port 445Andrew Tridgell2001-08-231-1/+1
| | | | (This used to be commit a896dc299eba12886d800e6c88309d534232cabc)
* 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 (This used to be commit a83d506e5cd6cef23298211b2fe4e0e25c9e5f48)
* use alpha_strcpy on DNS namesAndrew Tridgell2001-07-051-0/+6
| | | | (This used to be commit f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-1/+1
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* fixed socketpair_tcp for OpenBSDAndrew Tridgell2001-07-031-4/+9
| | | | (This used to be commit d99ce6a5e3455ed38ca3c1ac676b5048edf8c706)
* Syncup between 2.2 and HEAD.Jeremy Allison2001-06-271-17/+16
| | | | | Jeremy. (This used to be commit 39d4131a4571c9c7a96bdc2f6cd6be80a6c330af)
* on sco2 socketpair_tcp needs a bindAndrew Tridgell2001-06-271-0/+9
| | | | (This used to be commit d8e5409ebb883844d9a1abc9840af1809957a444)
* handle EISCONN in socketpair_tcpAndrew Tridgell2001-06-271-1/+2
| | | | | this should get the auto-tests working on IRIX (This used to be commit 87f90d48d857828a6ed12bdc58d0d881be45dfce)
* - 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 (This used to be commit 55109a752578e9389d853cb27ec17c2114ecff77)
* 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. (This used to be commit 7e8e6ae9a88c4d2587eb4e7f0501cd71bd36ebb2)
* 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. (This used to be commit 720fea53603b2f99153709e6717ca930ab60ca9f)
* *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. (This used to be commit 1b3977c5367a0b713b194f369abd9872ae01ac2a)
* Changes to use new genrand code that got missed while I was in Japan.Jeremy Allison2001-06-061-21/+0
| | | | | Jeremy. (This used to be commit 5a15831b9ae79ce1ce34d5574fe5da114d184e45)
* 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. (This used to be commit 19145bae720bbcc32dcab380c62a33d1f0e3eef0)
* Bumped up debug level on set socket options from 3 to 5.Tim Potter2001-05-101-2/+2
| | | | (This used to be commit f0b8ff4eeb3f276c37d062dbd25f7c8b0a02d593)
* Print socket options - patch from Dave Collier-Brown @ Sun.Jeremy Allison2000-10-061-2/+23
| | | | | Jeremy. (This used to be commit c18d6f8701c8e6ca03f9fff79cf28c842b3b5ff9)
* 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. (This used to be commit b28cc4163bc2faaa80c5782fc02c8f03c410cdeb)
* - got rid of the "passive" optionAndrew Tridgell2000-04-191-7/+0
| | | | | - cleaned up the standard_sub_*() calls a lot (This used to be commit 2c2d95d77d3667eaa9252506a82b9054b0d0e01c)
* use interpret_addr2() instead of inet_aton()Andrew Tridgell2000-04-141-1/+1
| | | | (This used to be commit f65c6ec6db8e05685c719e23d7b06b3452fbbb4e)
* 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. (This used to be commit 5937ab14d222696e40a3fc6f0e6a536f2d7305d3)
* Added support for SO_REUSEPORT for systems that have it.Jeremy Allison2000-02-161-1/+11
| | | | | Jeremy. (This used to be commit 377515cf9624720362c0b76969b9381d9972a13f)
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-031-0/+100
| | | | | to using internal msrpc code in smbd. (This used to be commit 8976e26d46cb991710bc77463f7f928ac00dd4d8)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-224/+305
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)
* the first independent msrpc daemon - lsarpcd.Luke Leighton1999-12-061-1/+5
| | | | | | | | | | | | | | | | one horrible cut / paste job from smbd, plus a code split of shared components between the two. the job is not _yet_ complete, as i need to be able to do a become_user() call for security reasons. i picked lsarpcd first because you don't _need_ security on it (microsoft botched so badly on this one, it's not real. at least they fixed this in nt5 with restrictanonymous=0x2). fixing this involves sending the current smb and unix credentials down the unix pipe so that the daemon it eventually goes to can pick them up at the other end. i can't believe this all worked!!! (This used to be commit 2245b0c6d13c7c5886e81f9137b05df883598c26)
* created create_pipe_socket() function.Luke Leighton1999-12-051-0/+62
| | | | (This used to be commit a3af3b4312144943413894b18b5845b56474ebb5)
* jeremy is going to hate me for this.Luke Leighton1999-12-041-0/+32
| | | | | | | | | | | | created an "nmb-agent" utility that, yes: it connects to the 137 socket and accepts unix socket connections which it redirects onto port 137. it uses the name_trn_id field to filter requests to the correct location. name_query() and name_status() are the first victims to use this feature (by specifying a file descriptor of -1). (This used to be commit d923bc8da2cf996408194d98381409191dd81a16)
* sys_select added one more argument (read, write selectors).Luke Leighton1999-12-011-1/+1
| | | | (This used to be commit e4d92ff9dfc51735e6932748f66a7c20b2c1cb6a)
* bertl <bs@niggard.org> patch for making samba listen on port 445, just likeLuke Leighton1999-09-081-0/+3
| | | | | nt 5 does. cool! (This used to be commit 727e1421b2c0f8c72c428776593498103304082b)
* debug info display (netbios layer).Luke Leighton1999-08-181-1/+11
| | | | (This used to be commit 5c974cc4a4cdcb9fd3fe01e93aa577b81cf2d18b)
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-1/+1
| | | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
* include/smb.h: Re-added zero pointer protection to ZERO_STRUCTP.Jeremy Allison1998-11-131-2/+2
| | | | | | | | lib/util_sock.c: Added strerror() calls to getpeername failures (which seem to be giving IRIX trouble at the moment). rpc_parse/parse_sec.c: Changed use of ZERO_STRUCTPN to ZERO_STRUCTP which again does zero pointer protection. smbd/quotas.c: Fixed typo. Jeremy. (This used to be commit b62f008974c96e0302d6c146cf49bc2045bef005)
* split socket util functions into util_sock.c. util.c NOT committedLuke Leighton1998-11-091-0/+851
and util_sock.c NOT included in Makefile.in. registry commands added to rpcclient. waiting for 2_0_0 split before committing modified files. these files are new modules, and are not referenced in the Makefile.in (This used to be commit 373f60256fc6dc800f73d88ea9a302933a4a3246)