1234567891011121314151617181920212223242526272829303132333435363738394041 |
-
-
- #include <vsprintf.h>
- #include <gpxe/netdevice.h>
- #include <gpxe/ip.h>
- #include <usr/route.h>
-
-
-
- void route ( void ) {
- struct ipv4_miniroute *miniroute;
-
- list_for_each_entry ( miniroute, &ipv4_miniroutes, list ) {
- printf ( "%s: %s/", miniroute->netdev->name,
- inet_ntoa ( miniroute->address ) );
- printf ( "%s", inet_ntoa ( miniroute->netmask ) );
- if ( miniroute->gateway.s_addr != INADDR_NONE )
- printf ( " gw %s", inet_ntoa ( miniroute->gateway ) );
- printf ( "\n" );
- }
- }
|