mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +00:00
only display host info once when more than one adapter is present.
svn path=/trunk/; revision=19509
This commit is contained in:
parent
d5879d411b
commit
14e1f7b936
1 changed files with 17 additions and 15 deletions
|
@ -149,23 +149,25 @@ INT ShowInfo(BOOL bAll)
|
||||||
|
|
||||||
_tprintf(_T("\nReactOS IP Configuration\n\n"));
|
_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)
|
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));
|
_tprintf(_T("\n%s ...... : \n\n"), GetInterfaceTypeName(pAdapter->Type));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue