summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
AgeCommit message (Collapse)AuthorFilesLines
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-1/+1
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-10-03Another patch from Steve Langasek <vorlon@netexpress.net>, again from theAndrew Bartlett1-3/+3
Debian patchset. The idea is to still allow DNS domains to be specified in 'hosts allow' and 'hosts deny' without making the admin set 'hostname lookups' in their smb.conf. His concern is about upgrades. This has been designed not to change the value of %M. Andrew Bartlett (This used to be commit f428ee98d83a55922c991b0eeddd47891b80d918)
2002-09-15Put unixsocket calls between #ifdef HAVE_UNIXSOCKET's - required for Stratus VOSJelmer Vernooij1-0/+5
(Double checked) (This used to be commit dc3c14fc2b661a62a1876149e96af6de07a2c4a6)
2002-08-25Patch from mimir to back out idra's attempted DOS mitigation patch.Andrew Bartlett1-2/+2
(It broke port 139 name exchange) I've been thinking about this, and doing is properly is actually rather difficult - but I'll try and get somthing in there. (My worry is what smb_read_error should be set to, and how that interacts with the rest of samba). Andrew Bartlett (This used to be commit 3e682867bbb13dae265cb9a8acea8b7cc87d82a6)
2002-08-23We never checked if the smb packet len is != 0Simo Sorce1-2/+2
Should fix a supposed DoS too. (This used to be commit f76e5b2677beb161c2f9c0d3dd78e707655e942f)
2002-08-21Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatibleJelmer Vernooij1-1/+1
(This used to be commit addf29e6765393b25c35bd833d29e29e4581c233)
2002-07-31added support for smbd listening on port 445 and 139. It now listensAndrew Tridgell1-1/+1
on both by default, and you can specify a list of ports to listen on either with "smb ports = " in smb.conf or using the -p option to smbd. this is needed for proper netbiosless operation. (This used to be commit 5dee0a7b5e0fcb298a9d36661c80e60d8b9bcc3a)
2002-07-08Kill off const warnings - add a pile of const to various places.Andrew Bartlett1-1/+1
(This used to be commit 1de04ec4735c19ec21cdef6e679cea17c734c5f6)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-87/+18
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-06-21Changed level of "bind succeded on port %d" debug to 10.Tim Potter1-1/+1
(This used to be commit de00428ef12b597e5c29896bf961cfd7a1e122dd)
2002-06-15Add back sys_getpwnam() and freinds to the system.c interface, but don'tAndrew Bartlett1-2/+2
use the silly cache any more. Also add group functions and fix a few callers. Andrew Bartlett (This used to be commit 41d4b94077c118ecde2bf8792b9bb7ab71c6403e)
2002-05-18Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.Andrew Bartlett1-34/+0
(only function that used it was unused, and this helps bring TNG and HEAD closer) Its also cleaner. Andrew Bartlett (This used to be commit 78f47c83332a6408a718a3dee45645935638b364)
2002-05-17This removes --with-ssl from Samba.Andrew Bartlett1-71/+0
This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett (This used to be commit b04561d3fd3ee732877790fb4193b20ad72a75f8)
2002-04-19Fixed one more sendto.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 7adcc930ca56bf879b5e73b74bca19ac2353f1c0)
2002-04-19Fix send and recvfrom.Jeremy Allison1-11/+11
Jeremy. (This used to be commit 8cbc24c3bd0e2d2349625c3b5d2e12ac092ec5a8)
2002-04-19First cut at fix for the EINTR problem... More needs to be done I think.Jeremy Allison1-136/+130
Jeremy. (This used to be commit 48475a7a697242b9fd7b1aec24389afb112569c4)
2002-03-23Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison1-1/+1
cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy. (This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-02-23Only set smb_read_error if not already set.Jeremy Allison1-6/+20
Jeremy. (This used to be commit 8220135fd16b4a1778e49f8315f64754924af0d8)
2002-02-15Back out 1.16.2.3:Martin Pool1-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. :-/ (This used to be commit b6d5d02aa1bf0caa28343dc87444f049c5fd8ce5)
2002-01-31Fix from Michael Steffens <michael_steffens@hp.com> to make signalJeremy Allison1-2/+2
processing work correctly in winbindd. This is a really good patch that gives full select semantics to the Samba modified select. Jeremy. (This used to be commit 3af16ade173cac24c1ac5eff4a36b439f16ac036)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-22Having a const parameter for set_socket_options() causes too much confusion.Tim Potter1-1/+1
(This used to be commit 025a0ea8bac876633b790b62558a8ec1b7460e1b)
2002-01-21Removed freebsd hack. Not correct.Jeremy Allison1-4/+0
Jeremy. (This used to be commit 61b4ce7aef53ab82bdc5bc214e50c1891e097c11)
2002-01-20This is the current patch from Luke Leighton <lckl@samba-tng.org> to add aAndrew Bartlett1-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 (This used to be commit 8ef13cabdddf58b741886782297fb64b2fb7e489)
2002-01-19Added #ifdef for FreeBSD TCP bug.Jeremy Allison1-0/+4
Jeremy. (This used to be commit 80df5ab07e2149e7cc3a4a0a6695da01e8f9492c)
2002-01-15Add constness to filenames passed to functions.Martin Pool1-1/+1
(This used to be commit 8d106dc1f4a51112516d72ae68747ca6b5b904b7)
2002-01-13A couple of coding syle updates to follow the re-indent.Andrew Bartlett1-5/+5
(This used to be commit 7417d6f9310188d2ad3d8f41d3dcbe55862c72ac)
2002-01-13Re-indent these two functions to make it actually possible to understand theirAndrew Bartlett1-161/+161
contents... Andrew Bartlett (This used to be commit e20d69d51862ea3fd5a7317a9592bd4dc6e68bfd)
2002-01-13I'm doing some things towards the NamedPipes game with lckl and he has asked meAndrew Bartlett1-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 (This used to be commit e6a3a01f795a85d908180ff19469ce09a2803512)
2001-12-20fixed warnings on irix and crash bug on big endian machinesAndrew Tridgell1-1/+1
(This used to be commit cc6c263993eaf0715f231fc80ca7e6e65694548b)
2001-11-24added "net join" commandAndrew Tridgell1-0/+31
this completes the first stage of the smbd ADS support (This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
2001-10-24Removed unused function.Tim Potter1-68/+0
(This used to be commit ef06de2a1ca434ab658940146b5d6c16bf580bb3)
2001-10-20Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter1-4/+4
(This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-3/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-26OpenSSL merge from 2.2Gerald Carter1-1/+1
(This used to be commit efc6df5a3914da9e7b792ccaccd1403c72c09f78)
2001-09-13added a new global option "hostname lookups = yes/no"Andrew Tridgell1-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 (This used to be commit 2b83ad03965d00bba88fe56452d2990099b75ef1)
2001-08-28fixed typoAndrew Tridgell1-1/+1
(This used to be commit 2d1829dfd041336a587443435d8dccab365a2b56)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell1-1/+1
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-26bzero is not used (deprecated) as it's a BSDism.Jeremy Allison1-62/+52
Syscalls must check for -1, not < 0 (POSIX). Formating (tab) fixups. Jeremy. (This used to be commit 7263949584a5e01fd5316770861a7550bd3f1155)
2001-08-26Fussing with debug lines in open_socket_in(). I cleaned up some slightlyChristopher R. Hertel1-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. (This used to be commit 3031e7acdc4eac99a736f45161dee9bf81c1cc87)
2001-08-24get rid of old debug code and possible socket leakHerb Lewis1-9/+1
(This used to be commit f942397d6515402be0c7c1085fc2e6d48eb6928f)
2001-08-23better error reporting for servers that don't do port 445Andrew Tridgell1-1/+1
(This used to be commit a896dc299eba12886d800e6c88309d534232cabc)
2001-07-10much better handling of broken DNS serversAndrew Tridgell1-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)
2001-07-05use alpha_strcpy on DNS namesAndrew Tridgell1-0/+6
(This used to be commit f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell1-1/+1
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-03fixed socketpair_tcp for OpenBSDAndrew Tridgell1-4/+9
(This used to be commit d99ce6a5e3455ed38ca3c1ac676b5048edf8c706)
2001-06-27Syncup between 2.2 and HEAD.Jeremy Allison1-17/+16
Jeremy. (This used to be commit 39d4131a4571c9c7a96bdc2f6cd6be80a6c330af)
2001-06-27on sco2 socketpair_tcp needs a bindAndrew Tridgell1-0/+9
(This used to be commit d8e5409ebb883844d9a1abc9840af1809957a444)
2001-06-27handle EISCONN in socketpair_tcpAndrew Tridgell1-1/+2
this should get the auto-tests working on IRIX (This used to be commit 87f90d48d857828a6ed12bdc58d0d881be45dfce)
2001-06-25- make the regresison test mode code build in by default. This shouldAndrew Tridgell1-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)