Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / ipxe / src / include / usr / route.h
1 #ifndef _USR_ROUTE_H
2 #define _USR_ROUTE_H
3
4 /** @file
5  *
6  * Routing management
7  *
8  */
9
10 FILE_LICENCE ( GPL2_OR_LATER );
11
12 #include <ipxe/tables.h>
13
14 /** A routing family */
15 struct routing_family {
16         /**
17          * Print routes for a network device
18          *
19          * @v netdev            Network device
20          */
21         void ( * print ) ( struct net_device *netdev );
22 };
23
24 /** Routing family table */
25 #define ROUTING_FAMILIES __table ( struct routing_family, "routing_families" )
26
27 /** Declare a routing family */
28 #define __routing_family( order ) __table_entry ( ROUTING_FAMILIES, order )
29
30 #define ROUTING_IPV4 01
31 #define ROUTING_IPV6 02
32
33 extern void route ( void );
34
35 #endif /* _USR_ROUTE_H */