2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

1578. [bug] Don't use CLASS E IPv4 addresses when resolving.

[RT #10346]
This commit is contained in:
Mark Andrews
2004-02-20 00:52:46 +00:00
parent 7436bb66c6
commit 22fa4e3206
8 changed files with 54 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: netaddr.c,v 1.25 2002/10/28 02:23:53 marka Exp $ */
/* $Id: netaddr.c,v 1.26 2004/02/20 00:52:45 marka Exp $ */
#include <config.h>
@@ -23,6 +23,7 @@
#include <isc/buffer.h>
#include <isc/msgs.h>
#include <isc/net.h>
#include <isc/netaddr.h>
#include <isc/print.h>
#include <isc/sockaddr.h>
@@ -305,6 +306,16 @@ isc_netaddr_ismulticast(isc_netaddr_t *na) {
}
}
isc_boolean_t
isc_netaddr_isexperimental(isc_netaddr_t *na) {
switch (na->family) {
case AF_INET:
return (ISC_TF(ISC_IPADDR_ISEXPERIMENTAL(na->type.in.s_addr)));
default:
return (ISC_FALSE); /* XXXMLG ? */
}
}
isc_boolean_t
isc_netaddr_islinklocal(isc_netaddr_t *na) {
switch (na->family) {