Index: /trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c
===================================================================
--- /trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c	(revision 39773)
+++ /trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c	(revision 39774)
@@ -30,10 +30,9 @@
 #define DNS_CONTROL_PORT_NUMBER 53
 /* see RFC 1035(4.1.1) */
-#pragma pack(1)
 union dnsmsg_header
 {
     struct
     {
-        uint16_t id;
+        unsigned id:16;
         unsigned rd:1;
         unsigned tc:1;
@@ -49,7 +48,6 @@
         uint16_t arcount;
     } X;
-    uint16_t raw[5];
+    uint16_t raw[6];
 };
-#pragma pack()
 AssertCompileSize(union dnsmsg_header, 12);
 
@@ -101,8 +99,8 @@
 {
     int i;
-    LogFlowFunc(("ENTER: pszQname:%s\n", pszQname));
-    pHdr->X.qr = 1; /* response */
+
     if (!pHostent)
     {
+        pHdr->X.qr = 1; /* response */
         pHdr->X.aa = 1;
         pHdr->X.rd = 1;
@@ -191,5 +189,4 @@
         pIp->ip_len = htons(packet_len);
     }
-    LogFlowFuncLeave();
 }
 
@@ -207,5 +204,4 @@
     struct udphdr *udp = NULL;
     union dnsmsg_header *pHdr = NULL;
-    LogFlowFuncEnter();
     NOREF(la);
     NOREF(ah);
@@ -214,9 +210,5 @@
 
     if (pHdr->X.qr == 1)
-    {
-        LogFlowFunc(("pHdr(X.qr:%d, raw:%RX16)\n", pHdr->X.qr, pHdr->raw));
-        LogFlowFuncLeave();
         return 0; /* this is respose */
-    }
 
     memset(pszCname, 0, sizeof(pszCname));
@@ -231,5 +223,4 @@
             fMultiWarn = true;
         }
-        LogFlowFuncLeave();
         return 1;
     }
@@ -272,5 +263,4 @@
     pIp->ip_sum = 0;
     pIp->ip_sum = LibAliasInternetChecksum(la, (uint16_t *)pIp, pIp->ip_hl << 2);
-    LogFlowFuncLeave();
     return 0;
 }
@@ -404,8 +394,5 @@
             if (!strcmp(pDNSMapingEntry->pszCName, *pszAlias))
             {
-                /*
-                 * we need add mappings for real host name, instead of using alias.
-                 * DNS server doesn't return alias list on real name request.
-                 */
+
                 PDNSMAPPINGENTRY pDnsMapping = RTMemAllocZ(sizeof(DNSMAPPINGENTRY));
                 fMatch = true;
