mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 13:05:44 +00:00
Display a media disconnected notice if the adapter is not connected.
svn path=/trunk/; revision=19125
This commit is contained in:
parent
f78304d996
commit
700e92d770
1 changed files with 11 additions and 3 deletions
|
@ -13,7 +13,6 @@
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* TODO:
|
* TODO:
|
||||||
* display multiple adapters
|
|
||||||
* fix renew / release
|
* fix renew / release
|
||||||
* implement flushdns, registerdns, displaydns, showclassid, setclassid
|
* implement flushdns, registerdns, displaydns, showclassid, setclassid
|
||||||
* allow globbing on adapter names
|
* allow globbing on adapter names
|
||||||
|
@ -138,7 +137,7 @@ INT ShowInfo(BOOL bAll)
|
||||||
|
|
||||||
_tprintf(_T("\nReactOS IP Configuration\n\n"));
|
_tprintf(_T("\nReactOS IP Configuration\n\n"));
|
||||||
|
|
||||||
do
|
while (pAdapter)
|
||||||
{
|
{
|
||||||
if (bAll)
|
if (bAll)
|
||||||
{
|
{
|
||||||
|
@ -157,6 +156,15 @@ INT ShowInfo(BOOL bAll)
|
||||||
}
|
}
|
||||||
|
|
||||||
_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 */
|
||||||
|
if (_tcscmp(pAdapter->IpAddressList.IpAddress.String, "0.0.0.0") == 0)
|
||||||
|
{
|
||||||
|
_tprintf(_T("\tMedia State . . . . . . . . . . . : Media disconnected\n"));
|
||||||
|
pAdapter = pAdapter->Next;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
_tprintf(_T("\tConnection-specific DNS Suffix. . : %s\n"), pFixedInfo->DomainName);
|
_tprintf(_T("\tConnection-specific DNS Suffix. . : %s\n"), pFixedInfo->DomainName);
|
||||||
|
|
||||||
if (bAll)
|
if (bAll)
|
||||||
|
@ -202,7 +210,7 @@ INT ShowInfo(BOOL bAll)
|
||||||
|
|
||||||
pAdapter = pAdapter->Next;
|
pAdapter = pAdapter->Next;
|
||||||
|
|
||||||
} while (pAdapter);
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue