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 FILE_SECBOOT ( PERMITTED );
12 
13 #include <ipxe/tables.h>
14 
15 /** A routing family */
17  /**
18  * Print routes for a network device
19  *
20  * @v netdev Network device
21  */
22  void ( * print ) ( struct net_device *netdev );
23 };
24 
25 /** Routing family table */
26 #define ROUTING_FAMILIES __table ( struct routing_family, "routing_families" )
27 
28 /** Declare a routing family */
29 #define __routing_family( order ) __table_entry ( ROUTING_FAMILIES, order )
30 
31 #define ROUTING_IPV4 01
32 #define ROUTING_IPV6 02
33 
34 extern void route ( void );
35 
36 #endif /* _USR_ROUTE_H */
static struct net_device * netdev
Definition: gdbudp.c:52
A routing family.
Definition: route.h:16
void(* print)(struct net_device *netdev)
Print routes for a network device.
Definition: route.h:22
FILE_SECBOOT(PERMITTED)
A network device.
Definition: netdevice.h:353
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Linker tables.
void route(void)
Print routing table.
Definition: route.c:40