only display host info once when more than one adapter is present.

svn path=/trunk/; revision=19509
This commit is contained in:
Ged Murphy 2005-11-24 00:21:42 +00:00
parent d5879d411b
commit 14e1f7b936

View file

@ -149,8 +149,7 @@ INT ShowInfo(BOOL bAll)
_tprintf(_T("\nReactOS IP Configuration\n\n")); _tprintf(_T("\nReactOS IP Configuration\n\n"));
while (pAdapter)
{
if (bAll) if (bAll)
{ {
_tprintf(_T("\tHost Name . . . . . . . . . . . . : %s\n"), pFixedInfo->HostName); _tprintf(_T("\tHost Name . . . . . . . . . . . . : %s\n"), pFixedInfo->HostName);
@ -167,6 +166,9 @@ INT ShowInfo(BOOL bAll)
_tprintf(_T("\tDNS Suffix Search List. . . . . . : %s\n"), pFixedInfo->DomainName); _tprintf(_T("\tDNS Suffix Search List. . . . . . : %s\n"), pFixedInfo->DomainName);
} }
while (pAdapter)
{
_tprintf(_T("\n%s ...... : \n\n"), GetInterfaceTypeName(pAdapter->Type)); _tprintf(_T("\n%s ...... : \n\n"), GetInterfaceTypeName(pAdapter->Type));
/* check if the adapter is connected to the media */ /* check if the adapter is connected to the media */