summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r2978: Fix #1926 typo in debug. Found by Bill McGonigle ↵Jeremy Allison1-1/+1
<bill+samba@bfccomputing.com>. Jeremy. (This used to be commit 4fd314243e82d9c55bc9849a722424d45553013e)
2007-10-10r1104: get_called_name is used in the printing subsystem. In case of multi-homedVolker Lendecke1-0/+22
servers we need to make sure that the clients are given back the IP address they connected to. Volker (This used to be commit 5f482df169eebae87ec769a05e3c3fc6e32af1e3)
2007-10-10r487: fixing some compile issues with the IBM AIX compiler reoported on the ↵Gerald Carter1-5/+7
ml -- now to watch the build farm some more (This used to be commit 79fed5f5a73cfe4811f626acbcf85860e23e7826)
2007-10-10r426: fixed bug noticed by wim.delvaux@adaptiveplanet.com in handling of ↵Andrew Tridgell1-0/+1
timeout in socket connections (This used to be commit 88278b24de4e3e408ac8a6139bd375a72bc664ce)
2004-03-27Merge from HEAD the SMB signing patch that I developed a couple of weeksAndrew Bartlett1-1/+1
ago. This patch re-adds support for 'optional' SMB signing. It also ensures that we are much more careful about when we enable signing, particularly with on-the-fly smb.conf reloads. The client code will now attempt to use smb signing by default, and disable it if the server doesn't correctly support it. Andrew Bartlett (This used to be commit e27b5cbe75d89ec839dafd52dd33101885a4c263)
2004-03-19updating release notes & merging Derrel Lipman's libsmbclient patch from HEADGerald Carter1-1/+1
(This used to be commit 5fbfaa687a3674287eeadd205f56b2b253a9e2a9)
2004-02-23Janitor for tpot...bugzilla #1098, msleep already exists on aixJim McDonough1-1/+1
(This used to be commit 4319df7fdc2d878c509381923cc1db4d731620ba)
2004-02-10more fixes from the static changes; please move static functions to the top ↵Gerald Carter1-23/+23
of files to prevent this from happening (This used to be commit 7a61c2ae450d3e41c45e6e3773ad00f6ab9beb16)
2004-02-08More 'static' work.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 25a09004e8a51eb3192adbb580239427bfee0ec9)
2004-02-02there are places in the samba3 code that don't check properly forAndrew Tridgell1-0/+4
packet-termination of strings. This change ensures that when we go past the end of a packet we hit 2 null bytes, thus terminating. We are relying on the SAFETY_MARGIN packet allocation stuff here. (This used to be commit 655ec168288159f5c0961ed8cbdd84c4e14eab26)
2003-12-09fix bug in get_peer_name() caused by --enable-developer and using the same ↵Gerald Carter1-3/+11
src & dest strings to alpha_strcpy(); reported by Michael Young (This used to be commit b7df6849c9368aa2e5960de54a03be269ab89fef)
2003-11-07Implement %i-Macro for the locally used IP address. With this you can againVolker Lendecke1-0/+28
have virtual hosts with different configurations on a single smbd even on port 445. Volker (This used to be commit 3a7c8c4f0e7fcfc2e20e1ad5e4b8e3c215ef1f0d)
2003-11-07Simple rename of get_socket_addr to get_peer_addr and get_socket_name toVolker Lendecke1-6/+6
get_peer_name. This is to get closer to the getsockname/getpeername system functions. Next step will be the %i macro for the local IP address. I still want to play %L-games in times of port 445. Volker (This used to be commit d7162122eaf5d897e5de51604e431bfbaa20e905)
2003-11-03Fix more 64-bit printf warnings.Tim Potter1-5/+6
(This used to be commit 23443e3aa079710221557e18158d0ddb8ff48a36)
2003-10-22Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison1-2/+2
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at all and I really want to discourage that. Jeremy. (This used to be commit d7e35dfb9283d560d0ed2ab231f36ed92767dace)
2003-10-21Patch from Stefan Metzmacher <metze@metzemix.de> to fix signing problemsJeremy Allison1-2/+17
when reverse connecting back to a client for printer notify. Jeremy. (This used to be commit 06aa434c3fdb139e3f3143d19413556945cbcd4f)
2003-07-23convert snprintf() calls using pstrings & fstringsGerald Carter1-1/+1
to pstr_sprintf() and fstr_sprintf() to try to standardize. lots of snprintf() calls were using len-1; some were using len. At least this helps to be consistent. (This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
2003-07-16Add API framework for server SMB signing.Jeremy Allison1-82/+100
Jeremy. (This used to be commit 61fc9a7b2eafdf8cbed1f8d9aae016b828c91a08)
2003-07-16Volker's patch for open_socket_out() to speed up connectionsGerald Carter1-3/+8
(This used to be commit 7d63b690004a59316a70059db0d9ad0ea9001288)
2003-04-30Refactor existing sock_exec() and socketpair_tcp() functions into their ownPaul Green1-93/+0
source file. I will be making changes to sock_exec to work on VOS, which has a blocking connect() call, but first I want to get it in its own source file so that it can be called from a test program. (This used to be commit 10bf65d335b7d7076484172faa2b4689ed437552)
2003-04-24When possible, store the IP address of the connecting client, not just theAndrew Bartlett1-0/+13
hostname. This makes 'last -i' show the IP. Thanks to Philip Anderson <pza@australia.op.org> for the idea. Andrew Bartlett (This used to be commit 107731c080da1e3e4e13e966f8b79bfd2692a952)
2003-04-11workaround streams leak on SCO openserver 5.0.xGerald Carter1-0/+4
(This used to be commit ab51878a978ffb53f23f1c6d22a48f98e6ae0805)
2003-02-07Samba janitor: adding mbp's umask patch :-).Jeremy Allison1-79/+69
Jeremy. (This used to be commit d4d8d27bf136bdbc785c7aad027537aabaa56a76)
2003-01-15*lots of small merges form HEADGerald Carter1-81/+1
*sync up configure.in *don't build torture tools in make all *make sure to remove torture tools as part of make clean (This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
2003-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett1-1/+1
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
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 f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
2002-10-26Try to catch up on the code I've put into HEAD that should be in 3.0:Andrew Bartlett1-3/+3
- vorlan's hosts allow with DNS names patch - use x_fileno() in debug.c, not the struct directly. - check for server timeout on password change (was reporting success) - better error/status loggin in both the pam_winbind client and winbindd_pam server code. - (pdb_ldap) don't set the ldap version twice - we do it on every bind anyway. (This used to be commit 9fa1863d8e7788eda83911ca2610754486b33069)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-1/+6
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-08-17sync 3.0 branch with headJelmer Vernooij1-1/+1
(This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-325/+145
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
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)