a4caaa600c
- DNSSEC is now DS based (RFC 3658). See also RFC 3845, doc/draft/draft-ietf-dnsext-dnssec-*. - DNSSEC lookaside validation. - check-names is now implemented. - rrset-order in more complete. - IPv4/IPv6 transition support, dual-stack-servers. - IXFR deltas can now be generated when loading master files, ixfr-from-differences. - It is now possible to specify the size of a journal, max-journal-size. - It is now possible to define a named set of master servers to be used in masters clause, masters. - The advertised EDNS UDP size can now be set, edns-udp-size. allow-v6-synthesis has been obsoleted. NOTE: * Zones containing MD and MF will now be rejected. * dig, nslookup name. now report "Not Implemented" as NOTIMP rather than NOTIMPL. This will have impact on scripts that are looking for NOTIMPL. - libbind: corresponds to that from BIND 8.4.5.
39 lines
924 B
Text
39 lines
924 B
Text
$NetBSD: patch-ac,v 1.5 2004/10/03 09:20:41 tron Exp $
|
|
|
|
--- lib/lwres/getaddrinfo.c- 2004-05-16 05:03:22.000000000 +0900
|
|
+++ lib/lwres/getaddrinfo.c 2004-05-16 05:04:33.000000000 +0900
|
|
@@ -30,6 +30,10 @@
|
|
#include <lwres/net.h>
|
|
#include <lwres/netdb.h>
|
|
|
|
+#ifdef __KAME__
|
|
+#include <net/if.h>
|
|
+#endif
|
|
+
|
|
#define SA(addr) ((struct sockaddr *)(addr))
|
|
#define SIN(addr) ((struct sockaddr_in *)(addr))
|
|
#define SIN6(addr) ((struct sockaddr_in6 *)(addr))
|
|
@@ -252,14 +256,22 @@
|
|
p = strchr(ntmp, '%');
|
|
ep = NULL;
|
|
|
|
+#ifdef __KAME__
|
|
+ if (p != NULL) {
|
|
+ scopeid = if_nametoindex(p + 1);
|
|
+ if (scopeid)
|
|
+ p = NULL;
|
|
+ }
|
|
+#endif
|
|
/*
|
|
* Vendors may want to support non-numeric
|
|
* scopeid around here.
|
|
*/
|
|
|
|
- if (p != NULL)
|
|
+ if (p != NULL) {
|
|
scopeid = (lwres_uint32_t)strtoul(p + 1,
|
|
&ep, 10);
|
|
+ }
|
|
if (p != NULL && ep != NULL && ep[0] == '\0')
|
|
*p = '\0';
|
|
else {
|