From cb9b39dd8289d3bec54ea9033994c59086fb7eec Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 28 Aug 2001 06:34:53 +0000 Subject: Added dummy handlers for SAM_SYNC and SAM_REPL messages. (This used to be commit 08e05f1b3c2d5767e8f8f0343fc0ea90c786eac0) --- source3/smbd/server.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'source3/smbd/server.c') 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")); -- cgit