diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 30 |
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")); |