iPXE
route.h
Go to the documentation of this file.
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_OR_UBDL );
11 
12 #include <ipxe/tables.h>
13 
14 /** A 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 */
static struct net_device * netdev
Definition: gdbudp.c:52
A routing family.
Definition: route.h:15
void(* print)(struct net_device *netdev)
Print routes for a network device.
Definition: route.h:21
A network device.
Definition: netdevice.h:348
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Linker tables.
void route(void)
Print routing table.
Definition: route.c:39