diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-10-27 14:22:56 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-10-27 14:22:56 +0000 |
commit | f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f (patch) | |
tree | 6fcdf37e1e643c964d2fee155808dcc3caf190e2 /source3/nameresp.c | |
parent | 697e46373c8fa7b07234f6611c93cf25fe9733ed (diff) | |
download | samba-f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f.tar.gz samba-f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f.tar.bz2 samba-f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f.zip |
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)
Diffstat (limited to 'source3/nameresp.c')
-rw-r--r-- | source3/nameresp.c | 33 |
1 files changed, 18 insertions, 15 deletions
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; } |