1035. [bug] Respond to multicast queries from a unicast address,

RFC 1123. [RT #137]
This commit is contained in:
Mark Andrews 2001-10-09 02:39:03 +00:00
parent 2e24e82fc3
commit 5f7516bee5
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,6 @@
1035. [bug] Respond to multicast queries from a unicast address,
RFC 1123. [RT #137]
1034. [bug] Multicast queries must not have RD set, RFC 1123.
FORMERR those that do. [RT #137]

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: client.c,v 1.181 2001/10/09 02:30:20 marka Exp $ */
/* $Id: client.c,v 1.182 2001/10/09 02:39:03 marka Exp $ */
#include <config.h>
@ -734,7 +734,8 @@ client_sendpkg(ns_client_t *client, isc_buffer_t *buffer) {
sockflags |= ISC_SOCKFLAG_NORETRY;
}
if ((client->attributes & NS_CLIENTATTR_PKTINFO) != 0)
if ((client->attributes & NS_CLIENTATTR_PKTINFO) != 0 &&
(client->attributes |= NS_CLIENTATTR_MULTICAST) == 0)
pktinfo = &client->pktinfo;
else
pktinfo = NULL;