aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/usr/route.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-02 22:41:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-02 22:41:00 -0800
commit702c7fbe7342403472e887508716add0c58c385c (patch)
tree639050b522cea25f4475d48da54380d61c7d10f3 /gpxe/src/usr/route.c
parent1e96e9cc1c3549c86dbf4e7caf880477e16e93e0 (diff)
downloadsyslinux.git-702c7fbe7342403472e887508716add0c58c385c.tar.gz
syslinux.git-702c7fbe7342403472e887508716add0c58c385c.tar.xz
syslinux.git-702c7fbe7342403472e887508716add0c58c385c.zip
Update gPXE to version 1.0.0
Diffstat (limited to 'gpxe/src/usr/route.c')
-rw-r--r--gpxe/src/usr/route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpxe/src/usr/route.c b/gpxe/src/usr/route.c
index f3a49f46..18757419 100644
--- a/gpxe/src/usr/route.c
+++ b/gpxe/src/usr/route.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <stdio.h>
#include <gpxe/netdevice.h>
#include <gpxe/ip.h>
@@ -34,7 +36,7 @@ void route ( void ) {
printf ( "%s: %s/", miniroute->netdev->name,
inet_ntoa ( miniroute->address ) );
printf ( "%s", inet_ntoa ( miniroute->netmask ) );
- if ( miniroute->gateway.s_addr != INADDR_NONE )
+ if ( miniroute->gateway.s_addr )
printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) )
printf ( " (inaccessible)" );