summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-28 06:34:53 +0000
committerTim Potter <tpot@samba.org>2001-08-28 06:34:53 +0000
commitcb9b39dd8289d3bec54ea9033994c59086fb7eec (patch)
treed077439bf8d6809faa6374b96a16fea09b6d3070 /source3
parentcd0a9f6fcc9fbb3071638a17c3aaa579329b4196 (diff)
downloadsamba-cb9b39dd8289d3bec54ea9033994c59086fb7eec.tar.gz
samba-cb9b39dd8289d3bec54ea9033994c59086fb7eec.tar.bz2
samba-cb9b39dd8289d3bec54ea9033994c59086fb7eec.zip
Added dummy handlers for SAM_SYNC and SAM_REPL messages.
(This used to be commit 08e05f1b3c2d5767e8f8f0343fc0ea90c786eac0)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 5bcb47393a..36c98300f0 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -80,6 +80,31 @@ static void killkids(void)
if(am_parent) kill(0,SIGTERM);
}
+/****************************************************************************
+ process a sam sync message - not sure whether to do this here or
+ somewhere else
+****************************************************************************/
+static void msg_sam_sync(int msg_type, pid_t pid, void *buf, size_t len)
+{
+ DEBUG(10, ("** sam sync message received, ignoring\n"));
+}
+
+/****************************************************************************
+ process a sam sync replicate message - not sure whether to do this here or
+ somewhere else
+****************************************************************************/
+static void msg_sam_repl(int msg_type, pid_t pid, void *buf, size_t len)
+{
+ uint32 low_serial;
+
+ if (len != sizeof(uint32))
+ return;
+
+ low_serial = *((uint32 *)buf);
+
+ DEBUG(3, ("received sam replication message, serial = 0x%04x\n",
+ low_serial));
+}
/****************************************************************************
open the socket communication
@@ -196,6 +221,11 @@ max can be %d\n",
FD_SET(s,&listen_set);
}
+ /* Listen to messages */
+
+ message_register(MSG_SMB_SAM_SYNC, msg_sam_sync);
+ message_register(MSG_SMB_SAM_REPL, msg_sam_repl);
+
/* now accept incoming connections - forking a new process
for each incoming connection */
DEBUG(2,("waiting for a connection\n"));