pkgsrc/net/bind99/patches/patch-lib_lwres_getnameinfo.c
taca 42791c4b44 Importing BIND 9.9.0 as pkgsrc/net/bind99.
Introduction

   BIND 9.9.0 is the first production release of BIND 9.9.

   This document summarizes changes from BIND 9.8 to BIND 9.9.
   Please see the CHANGES file in the source code release for a
   complete list of all changes.

New Features

* The new "inline-signing" option
* NXDOMAIN redirection
* "rndc flushtree <name>" command
* "rndc sync" command
* The new "rndc signing" command
* "auto-dnssec" zones
* Improves the startup time

And more.
2012-03-07 14:25:00 +00:00

34 lines
910 B
C

$NetBSD: patch-lib_lwres_getnameinfo.c,v 1.1.1.1 2012/03/07 14:25:00 taca Exp $
* Add fix for KAME based implementation.
--- lib/lwres/getnameinfo.c.orig 2011-08-30 23:46:53.000000000 +0000
+++ lib/lwres/getnameinfo.c
@@ -121,6 +121,10 @@
#include <lwres/netdb.h>
#include "print_p.h"
+#ifdef __KAME__
+#include <net/if.h>
+#endif
+
#include "assert_p.h"
#define SUCCESS 0
@@ -272,13 +276,9 @@ lwres_getnameinfo(const struct sockaddr
((const struct sockaddr_in6 *)sa)->sin6_scope_id) {
char *p = numaddr + strlen(numaddr);
const char *stringscope = NULL;
-#if 0
- if ((flags & NI_NUMERICSCOPE) == 0) {
- /*
- * Vendors may want to add support for
- * non-numeric scope identifier.
- */
- stringscope = foo;
+#ifdef __KAME__
+ stringscope = if_indextoname(
+ ((const struct sockaddr_in6 *)sa)->sin6_scope_id);
}
#endif
if (stringscope == NULL) {