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