From f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Sun, 27 Oct 1996 14:22:56 +0000 Subject: severe debugging session for nmbd. in fact, i'm surprised that browsing in 1.9.16 works at all! question and resource record types for queries and response netbios packets sorted out properly (see rfc1002.txt 4.2.1.3). receipt of browser announcement packets were playing up lkcl (This used to be commit b289db62f1a53f1a68ea48dbfa59720cc778d39c) --- source3/nameresp.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'source3/nameresp.c') diff --git a/source3/nameresp.c b/source3/nameresp.c index 9be0f4491f..949bb366bb 100644 --- a/source3/nameresp.c +++ b/source3/nameresp.c @@ -134,25 +134,28 @@ static void dead_netbios_entry(struct subnet_record *d, on that subnet. if we are using a WINS server, then the WINS server must be dead or deaf. */ - if (n->bcast) + if (n->num_msgs == 0) { - /* broadcast method: implicit acceptance of the name registration - by not receiving any objections. */ + if (n->bcast) + { + /* broadcast method: implicit acceptance of the name registration + by not receiving any objections. */ - /* IMPORTANT: see response_name_reg() */ + /* IMPORTANT: see response_name_reg() */ - name_register_work(d,n->name.name,n->name.name_type, - n->nb_flags, n->ttl, n->reply_to_ip, n->bcast); - } - else if (n->num_msgs == 0) - { - /* received no response. rfc1001.txt states that after retrying, - we should assume the WINS server is dead, and fall back to - broadcasting (see bits about M nodes: can't find any right - now) */ + name_register_work(d,n->name.name,n->name.name_type, + n->nb_flags, n->ttl, n->reply_to_ip, n->bcast); + } + else + { + /* received no response. rfc1001.txt states that after retrying, + we should assume the WINS server is dead, and fall back to + broadcasting (see bits about M nodes: can't find any right + now) */ - DEBUG(1,("WINS server did not respond to name registration!\n")); - /* XXXX whoops. we have problems. must deal with this */ + DEBUG(1,("WINS server did not respond to name registration!\n")); + /* XXXX whoops. we have problems. must deal with this */ + } } break; } -- cgit