Module Name:    src
Committed By:   tsarna
Date:           Sat Oct 24 04:04:40 UTC 2009

Modified Files:
        src/external/apache2/mDNSResponder/dist/mDNSPosix: PosixDaemon.c

Log Message:
Add interface list dump to debugging output.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c
diff -u src/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c:1.3 src/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c:1.4
--- src/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c:1.3	Sat Oct  3 00:03:05 2009
+++ src/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c	Sat Oct 24 04:04:40 2009
@@ -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

Reply via email to