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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user