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
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_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
34extern void route ( void );
35
36#endif /* _USR_ROUTE_H */
static struct net_device * netdev
Definition gdbudp.c:53
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
void route(void)
Print routing table.
Definition route.c:40
A network device.
Definition netdevice.h:353
A routing family.
Definition route.h:16
void(* print)(struct net_device *netdev)
Print routes for a network device.
Definition route.h:22
Linker tables.