iPXE
route.h
Go to the documentation of this file.
00001 #ifndef _USR_ROUTE_H
00002 #define _USR_ROUTE_H
00003 
00004 /** @file
00005  *
00006  * Routing management
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 #include <ipxe/tables.h>
00013 
00014 /** A routing family */
00015 struct routing_family {
00016         /**
00017          * Print routes for a network device
00018          *
00019          * @v netdev            Network device
00020          */
00021         void ( * print ) ( struct net_device *netdev );
00022 };
00023 
00024 /** Routing family table */
00025 #define ROUTING_FAMILIES __table ( struct routing_family, "routing_families" )
00026 
00027 /** Declare a routing family */
00028 #define __routing_family( order ) __table_entry ( ROUTING_FAMILIES, order )
00029 
00030 #define ROUTING_IPV4 01
00031 #define ROUTING_IPV6 02
00032 
00033 extern void route ( void );
00034 
00035 #endif /* _USR_ROUTE_H */