2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

1036. [func] Temporally drop requests received via multicast.

This commit is contained in:
Mark Andrews 2001-10-09 04:29:19 +00:00
parent 5f7516bee5
commit 0aba41458d
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,5 @@
1036. [func] Temporally drop requests received via multicast.
1035. [bug] Respond to multicast queries from a unicast address, 1035. [bug] Respond to multicast queries from a unicast address,
RFC 1123. [RT #137] RFC 1123. [RT #137]

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: client.c,v 1.182 2001/10/09 02:39:03 marka Exp $ */ /* $Id: client.c,v 1.183 2001/10/09 04:29:19 marka Exp $ */
#include <config.h> #include <config.h>
@ -1161,6 +1161,17 @@ client_request(isc_task_t *task, isc_event_t *event) {
} }
} }
/*
* Silently drop multicast requests for the present.
* XXXMPA look at when/if mDNS spec stabilizes.
*/
if ((client->attributes & NS_CLIENTATTR_MULTICAST) != 0) {
ns_client_log(client, NS_LOGCATEGORY_CLIENT,
NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(2),
"dropping multicast request");
ns_client_next(client, DNS_R_REFUSED);
}
result = dns_message_peekheader(buffer, &id, &flags); result = dns_message_peekheader(buffer, &id, &flags);
if (result != ISC_R_SUCCESS) { if (result != ISC_R_SUCCESS) {
/* /*