summaryrefslogtreecommitdiffstats
path: root/source3/nmbd/nmbd_packets.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-02 19:12:11 +0000
committerJeremy Allison <jra@samba.org>1998-04-02 19:12:11 +0000
commitfd6dacbcdbbc2fbcb1e8f487cd58eefb4c24b982 (patch)
treef6d18674d732c1b6595fe51e9f68a43f6e47296d /source3/nmbd/nmbd_packets.c
parent77e4dd247863d02c30240a318f6cd8f82916e30d (diff)
downloadsamba-fd6dacbcdbbc2fbcb1e8f487cd58eefb4c24b982.tar.gz
samba-fd6dacbcdbbc2fbcb1e8f487cd58eefb4c24b982.tar.xz
samba-fd6dacbcdbbc2fbcb1e8f487cd58eefb4c24b982.zip
We were missing a case switch in announcement processing - we
were loggin a become backup request with debug log level of 0 - thus producing lots of annoying error messages. Now handle this explicitly. Jeremy. (This used to be commit 0f4914b870b0dfa876ac47d29f3a1b3736a3d698)
Diffstat (limited to 'source3/nmbd/nmbd_packets.c')
-rw-r--r--source3/nmbd/nmbd_packets.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c
index f14c62c4eb5..cafed5f79ac 100644
--- a/source3/nmbd/nmbd_packets.c
+++ b/source3/nmbd/nmbd_packets.c
@@ -982,11 +982,13 @@ mismatch with our scope (%s).\n", inet_ntoa(p->ip), dgram->dest_name.scope, scop
}
case ANN_AnnouncementRequest:
{
+ debug_browse_data(buf, len);
process_announce_request(subrec, p, buf+1);
break;
}
case ANN_Election:
{
+ debug_browse_data(buf, len);
process_election(subrec, p, buf+1);
break;
}
@@ -1016,6 +1018,7 @@ packet from %s IP %s\n", namestr(&dgram->source_name), inet_ntoa(p->ip)));
}
case ANN_ResetBrowserState:
{
+ debug_browse_data(buf, len);
process_reset_browser(subrec, p, buf+1);
break;
}
@@ -1025,11 +1028,25 @@ packet from %s IP %s\n", namestr(&dgram->source_name), inet_ntoa(p->ip)));
on the unicast subnet. */
subrec = unicast_subnet;
+ debug_browse_data(buf, len);
process_master_browser_announce(subrec, p, buf+1);
break;
}
+ case ANN_BecomeBackup:
+ {
+ /*
+ * We don't currently implement this. Log it just in case.
+ */
+ debug_browse_data(buf, len);
+ DEBUG(10,("process_browse_packet: On subnet %s ignoring browse packet \
+command ANN_BecomeBackup from %s IP %s to %s\n",
+ subrec->subnet_name, namestr(&dgram->source_name),
+ inet_ntoa(p->ip), namestr(&dgram->dest_name)));
+ break;
+ }
default:
{
+ debug_browse_data(buf, len);
DEBUG(0,("process_browse_packet: On subnet %s ignoring browse packet \
command code %d from %s IP %s to %s\n",
subrec->subnet_name, command, namestr(&dgram->source_name),