diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-11 23:54:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:44 -0500 |
commit | 0487eee93a06c8d4d1925660d6d14374c4039d86 (patch) | |
tree | 94c251edd48c5996aa831f8378459079e01939c5 /source4/nbt_server/nodestatus.c | |
parent | 801889f71af52d8d136656ec1100364c50c1626d (diff) | |
download | samba-0487eee93a06c8d4d1925660d6d14374c4039d86.tar.gz samba-0487eee93a06c8d4d1925660d6d14374c4039d86.tar.bz2 samba-0487eee93a06c8d4d1925660d6d14374c4039d86.zip |
r5346: - a bit more preparation for the WINS server going in
- more NBT packet asserts, to ensure that incoming requests have all
the elements we depend on
- open the WINS database at startup if we are configured as a WINS server
- split out the nbtd server reply packet generation code so it can be
shared by the WINS server
- re-did the logic of what is answered by the WINS server and what by
the B node server. It now always tries to answer by the B node, and
only "recurses" to the WINS server for names that are not found.
(This used to be commit 5613e6b8ad9b32639caf5055f793dbc4d0a2fc19)
Diffstat (limited to 'source4/nbt_server/nodestatus.c')
-rw-r--r-- | source4/nbt_server/nodestatus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/nbt_server/nodestatus.c b/source4/nbt_server/nodestatus.c index ba6c3ea77b..5b79bf315f 100644 --- a/source4/nbt_server/nodestatus.c +++ b/source4/nbt_server/nodestatus.c @@ -104,9 +104,9 @@ void nbtd_query_status(struct nbt_name_socket *nbtsock, struct nbtd_interface *iface = talloc_get_type(nbtsock->incoming.private, struct nbtd_interface); - NBT_ASSERT_PACKET(packet, src_address, packet->qdcount == 1); - NBT_ASSERT_PACKET(packet, src_address, packet->questions[0].question_type == NBT_QTYPE_STATUS); - NBT_ASSERT_PACKET(packet, src_address, packet->questions[0].question_class == NBT_QCLASS_IP); + NBTD_ASSERT_PACKET(packet, src_address, packet->qdcount == 1); + NBTD_ASSERT_PACKET(packet, src_address, packet->questions[0].question_type == NBT_QTYPE_STATUS); + NBTD_ASSERT_PACKET(packet, src_address, packet->questions[0].question_class == NBT_QCLASS_IP); /* see if we have the requested name on this interface */ name = &packet->questions[0].name; |