Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSPosix Add interface ...



details:   https://anonhg.NetBSD.org/src/rev/ae2529adfca6
branches:  trunk
changeset: 748437:ae2529adfca6
user:      tsarna <tsarna%NetBSD.org@localhost>
date:      Sat Oct 24 04:04:40 2009 +0000

description:
Add interface list dump to debugging output.

diffstat:

 external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c |  14 +++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r 91fc7149914c -r ae2529adfca6 external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c
--- a/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c       Sat Oct 24 03:55:27 2009 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c       Sat Oct 24 04:04:40 2009 +0000
@@ -183,10 +183,24 @@
 // Dump a little log of what we've been up to.
        {
        DNSServer *s;
+        PosixNetworkInterface *i;
 
        LogMsg("---- BEGIN STATE LOG ----");
        udsserver_info(m);
 
+        LogMsgNoIdent("----- Network Interfaces -------");
+        for (i = (PosixNetworkInterface*)(m->HostInterfaces);
+        i; i = (PosixNetworkInterface *)(i->coreIntf.next)) {
+            LogMsg("%p %p %d %s%s%s%s%s %-8s %#a", i,
+            (void *)(i->coreIntf.InterfaceID), i->index,
+            i->coreIntf.InterfaceActive ? "-" : "D",
+            i->coreIntf.IPv4Available ? "4" : "-",
+            i->coreIntf.IPv6Available ? "6" : "-",
+            i->coreIntf.Advertise ? "A" : "-",
+            i->coreIntf.McastTxRx ? "M" : "-",
+            i->intfName, &(i->coreIntf.ip));
+        }
+        
         LogMsgNoIdent("--------- DNS Servers ----------");
         if (!mDNSStorage.DNSServers) LogMsgNoIdent("<None>");
         else



Home | Main Index | Thread Index | Old Index