Author: janderwald
Date: Wed Oct 29 08:49:10 2008
New Revision: 37058
URL:
http://svn.reactos.org/svn/reactos?rev=37058&view=rev
Log:
- Only display the default gateway when there is actually a gateway set
Modified:
trunk/reactos/base/applications/network/ipconfig/ipconfig.c
Modified: trunk/reactos/base/applications/network/ipconfig/ipconfig.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ipconfig/ipconfig.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ipconfig/ipconfig.c [iso-8859-1] Wed Oct 29
08:49:10 2008
@@ -454,7 +454,10 @@
_tprintf(_T("\tIP Address. . . . . . . . . . . . : %s\n"),
pAdapter->IpAddressList.IpAddress.String);
_tprintf(_T("\tSubnet Mask . . . . . . . . . . . : %s\n"),
pAdapter->IpAddressList.IpMask.String);
- _tprintf(_T("\tDefault Gateway . . . . . . . . . : %s\n"),
pAdapter->GatewayList.IpAddress.String);
+ if (pAdapter->GatewayList.IpAddress.String[0] != '0')
+ _tprintf(_T("\tDefault Gateway . . . . . . . . . : %s\n"),
pAdapter->GatewayList.IpAddress.String);
+ else
+ _tprintf(_T("\tDefault Gateway . . . . . . . . . :\n"));
if (bAll)
{