summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/usr/route.h
blob: 7ec4a350933fc8faebc48bc1559caeb009dac133 (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_OR_UBDL );

#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 */