summaryrefslogtreecommitdiffstats
path: root/source/lib/messages.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved debug messages for grabbing/releasing mutex.Jeremy Allison2002-03-271-0/+4
| | | | Jeremy.
* Don't hold the mutex for more than 20 seconds.Jeremy Allison2002-03-261-4/+32
| | | | Jeremy.
* Add assertions that kill() is never accidentally passed a non-positiveMartin Pool2002-03-201-0/+7
| | | | | | | | | pid. This follows a bug in rsync where it would accidentally kill(-1), removing all the user's processes. I can't see any way this would directly happen in Samba, but having the assertions seems beneficial. http://cvs.samba.org/cgi-bin/cvsweb/rsync/util.c.diff?r1=1.108&r2=1.109&f=h
* getpid() -> sys_getpid()Tim Potter2002-03-141-1/+1
|
* Doc.Tim Potter2002-03-091-9/+14
|
* serialise all domain auth requestsAndrew Tridgell2002-02-181-0/+30
| | | | | | | | | this is needed because W2K will send a TCP reset to any open connections that have not done a negprot when a second connection is made. This meant that under heavy netlogon load a Samba domain member would fail authentications. Jeremy, you may wish to port this to 2.2.x
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* If we receive a message that is not handled then emit a gentle warningMartin Pool2002-01-031-0/+8
| | | | to the log.
* debug output on receipt of message.Martin Pool2002-01-031-0/+2
|
* Add an output parameter to message_send_all that says how manyMartin Pool2001-12-211-12/+33
| | | | | | messages were sent, so you know how many replies to expect. Const and doc religion.
* Doc how to reply to messages.Martin Pool2001-12-191-1/+8
|
* Merged in JohnR's ping messaging extension.Jeremy Allison2001-11-201-27/+36
| | | | Jeremy.
* Fixed enumeration of large numbers of groups from a Samba DC.Jeremy Allison2001-09-251-1/+5
| | | | | Tidied up debug messages in lib/messages.c Jeremy.
* move to SAFE_FREE()Simo Sorce2001-09-171-7/+7
|
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
|
* Some fixes about malloc/Realloc and mem leakSimo Sorce2001-08-051-4/+11
| | | | thanks to andreas moroder
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-041-1/+1
|
* Check sizes of data entries in connections.tdb before deciding they're crecs...Jeremy Allison2001-05-151-1/+5
| | | | | We will need this when we use finer grained locking for max connections. Jeremy.
* More debug %d -> %u issues.Jeremy Allison2001-04-271-4/+4
| | | | Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | Jeremy.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-3/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-2/+1
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.
* Merge from 2.2 - with connection fix.Jeremy Allison2001-02-031-1/+15
| | | | Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-231-4/+7
| | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - add an access check to _spoolss_deleteprinter() to stop random users and passers by from deleting printers. source/lib/messages.c - converted global msg_all struct to a local in message_send_all() function. source/include/smb.h - added a success error code to the spoolss return codes. source/include/proto.h source/param/loadparm.c source/printing/printing.c - Added new parameter "total print jobs" to limit the total number of print jobs across all queues. Currently individual queues are limited by "max print jobs".
* removed unnecessary process_exists() call in message_send_pid()Andrew Tridgell2001-01-151-11/+0
| | | | it slows us down and doesn't gain anything
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testsuite/printing/psec.c - Use lock directory from smb.conf parameter when peeking at the ntdrivers.tdb file. source/rpc_parse/parse_sec.c - fix typo in debug message source/script/installbin.sh - create private directory as part of 'make install'. source/nsswitch/winbindd_cache.c source/nsswitch/winbindd_idmap.c source/passdb/secrets.c source/smbd/connection.c - always convert tdb key to unix code-page when generating. source/printing/nt_printing.c - always convert tdb key to unix code-page when generating. - don't prepend path to a filename that is NULL in add_a_printer_driver_3(). source/rpc_server/srv_spoolss_nt.c - always convert tdb key to unix code-page when generating. - don't prepend server name to a path/filename that is NULL in the fill_printer_driver_info functions. source/printing/printing.c - always convert tdb key to unix code-page when generating. - move access check for print_queue_purge() outside of job delete loop. source/smbd/unix_acls.c - fix for setting ACLs (this got missed earlier) source/lib/messages.c - trivial sync with appliance_head
* Fix from John for growing messages.tdb.Jeremy Allison2001-01-111-0/+1
| | | | Jeremy.
* Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-151-11/+2
| | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy.
* Changed to sourceforge tdb code. This includes spinlocks (so we now haveJeremy Allison2000-12-061-7/+7
| | | | | | | | a --with-spinlocks option to configure, this does mean the on-disk tdb format has changed, so 2.2alphaX sites will need to re-create their tdb's. The upside is no more tdb fragmentation and a +5% on netbench. Swings and roundabouts.... Jeremy.
* fixed messaging bug - use strlen() instead of sizeof() in key lengthAndrew Tridgell2000-12-021-2/+2
|
* fixed the problem with messages not getting throughAndrew Tridgell2000-11-171-1/+1
| | | | | | | | | | the problem had nothing to do with being your own pid, it was instead a problem with IPC$ connections not being registered in the connections database and an incorrect test for -1 in the messaging code. These changes also mean that IPC$ shares now show up in smbstatus. That is probably a good thing.
* Delete queue on empty.Jeremy Allison2000-11-171-2/+7
| | | | Jeremy.
* the duplicate checking code will cause unaligned accesses on non-intelAndrew Tridgell2000-11-171-4/+4
| | | | processors. Fixed.
* use process_exists() not kill(pid, 0)Andrew Tridgell2000-11-171-1/+1
|
* Fix for a problem with the new messaging system. If a sender is using theJeremy Allison2000-11-161-5/+41
| | | | | | | | | | | | | | messaging system as a notification mechanism, and the speed of notification greatly exceeds the speed of message recovery, then you get a massively (>75Mb) growing tdb. If the message is a simple notification, then the message is static, and you only need one of them in transit to a target process at any one time. This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives. If set to False, then before sending a message the sender checks the existing message queue for a target pid for a duplicate of this message, and doesn't add to it if one already exists. Also added code into msgtest.c to test this. Jeremy.
* Merge of Herb's profiling code.Jeremy Allison2000-11-111-0/+1
| | | | Jeremy.
* 64 bit fix from Uros Prestor <uros@turbolinux.com>.Jeremy Allison2000-11-061-3/+3
| | | | Jeremy.
* Fix some compiler warnings.Tim Potter2000-11-041-6/+6
|
* lib/messages.c add debug print for receipt of PING andHerb Lewis2000-10-121-0/+2
| | | | | | REQ_DEBUGLEVEL messages utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error from message_init.
* changes to sync with 2.2. treeHerb Lewis2000-10-111-0/+12
| | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command
* Adding Herb's compile warning fixes to HEAD.Jeremy Allison2000-10-041-1/+1
| | | | Jeremy.
* fix for IRIX compiler error messagesHerb Lewis2000-09-261-3/+3
|
* first cut at smbcontrol program. It currently allows syntax like:Andrew Tridgell2000-09-131-0/+43
| | | | | | | smbcontrol nmbd debug 7 smbcontrol smbd debug 9 smbcontrol 3278 debug 1 smbcontrol nmbd force-election
* - fixed some memory leaks in the messages codeAndrew Tridgell2000-09-121-1/+28
| | | | - added a MSG_PING message for performance testing.
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-121-13/+18
| | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election
* much nicer message interface. We now register dispatch functions,Andrew Tridgell2000-09-121-8/+45
| | | | | | | | | allowing new bits of code or vfs modules to register functions without impacting on the messaging code itself. Also note that multiple registrations for the same message type are possible allowing the same message to be delivered to multiple parts of the code (possibly useful for reload messages).
* the first cut of the internal messaging system.Andrew Tridgell2000-09-111-0/+237
The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message.