[ros-diffs] [gedmurphy] 19509: only display host info once when more than one adapter is present.

gedmurphy at svn.reactos.com gedmurphy at svn.reactos.com
Thu Nov 24 01:21:48 CET 2005


only display host info once when more than one adapter is present.
Modified: trunk/reactos/apps/utils/net/ipconfig/ipconfig.c
  _____  

Modified: trunk/reactos/apps/utils/net/ipconfig/ipconfig.c
--- trunk/reactos/apps/utils/net/ipconfig/ipconfig.c	2005-11-23
23:02:35 UTC (rev 19508)
+++ trunk/reactos/apps/utils/net/ipconfig/ipconfig.c	2005-11-24
00:21:42 UTC (rev 19509)
@@ -149,23 +149,25 @@

 
     _tprintf(_T("\nReactOS IP Configuration\n\n"));
 
+
+    if (bAll)
+    {
+        _tprintf(_T("\tHost Name . . . . . . . . . . . . : %s\n"),
pFixedInfo->HostName);
+        _tprintf(_T("\tPrimary DNS Suffix. . . . . . . . : \n"));
+        _tprintf(_T("\tNode Type . . . . . . . . . . . . : %s\n"),
GetNodeTypeName(pFixedInfo->NodeType));
+        if (pFixedInfo->EnableRouting)
+            _tprintf(_T("\tIP Routing Enabled. . . . . . . . :
Yes\n"));
+        else
+            _tprintf(_T("\tIP Routing Enabled. . . . . . . . : No\n"));
+        if (pAdapter->HaveWins)
+            _tprintf(_T("\tWINS Proxy enabled. . . . . . . . :
Yes\n"));
+        else
+            _tprintf(_T("\tWINS Proxy enabled. . . . . . . . : No\n"));
+        _tprintf(_T("\tDNS Suffix Search List. . . . . . : %s\n"),
pFixedInfo->DomainName);
+    }
+
 	while (pAdapter)
 	{
-        if (bAll)
-        {
-            _tprintf(_T("\tHost Name . . . . . . . . . . . . : %s\n"),
pFixedInfo->HostName);
-            _tprintf(_T("\tPrimary DNS Suffix. . . . . . . . : \n"));
-            _tprintf(_T("\tNode Type . . . . . . . . . . . . : %s\n"),
GetNodeTypeName(pFixedInfo->NodeType));
-            if (pFixedInfo->EnableRouting)
-                _tprintf(_T("\tIP Routing Enabled. . . . . . . . :
Yes\n"));
-            else
-                _tprintf(_T("\tIP Routing Enabled. . . . . . . . :
No\n"));
-            if (pAdapter->HaveWins)
-                _tprintf(_T("\tWINS Proxy enabled. . . . . . . . :
Yes\n"));
-            else
-                _tprintf(_T("\tWINS Proxy enabled. . . . . . . . :
No\n"));
-            _tprintf(_T("\tDNS Suffix Search List. . . . . . : %s\n"),
pFixedInfo->DomainName);
-        }
 
         _tprintf(_T("\n%s ...... : \n\n"),
GetInterfaceTypeName(pAdapter->Type));
         
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051124/244bea36/attachment.html


More information about the Ros-diffs mailing list