iPXE
route.h File Reference

Routing management. More...

#include <ipxe/tables.h>

Go to the source code of this file.

Data Structures

struct  routing_family
 A routing family. More...

Macros

#define ROUTING_FAMILIES   __table ( struct routing_family, "routing_families" )
 Routing family table.
#define __routing_family(order)
 Declare a routing family.
#define ROUTING_IPV4   01
#define ROUTING_IPV6   02

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
void route (void)
 Print routing table.

Detailed Description

Routing management.

Definition in file route.h.

Macro Definition Documentation

◆ ROUTING_FAMILIES

#define ROUTING_FAMILIES   __table ( struct routing_family, "routing_families" )

Routing family table.

Definition at line 26 of file route.h.

Referenced by route().

◆ __routing_family

#define __routing_family ( order)
Value:
#define ROUTING_FAMILIES
Routing family table.
Definition route.h:26
#define __table_entry(table, idx)
Declare a linker table entry.
Definition tables.h:239

Declare a routing family.

Definition at line 29 of file route.h.

Referenced by __routing_family(), and __routing_family().

◆ ROUTING_IPV4

#define ROUTING_IPV4   01

Definition at line 31 of file route.h.

Referenced by __routing_family().

◆ ROUTING_IPV6

#define ROUTING_IPV6   02

Definition at line 32 of file route.h.

Referenced by __routing_family().

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ route()

void route ( void )
extern

Print routing table.

Definition at line 40 of file route.c.

40 {
41 struct net_device *netdev;
42 struct routing_family *family;
43
46 family->print ( netdev );
47 }
48 }
49}
static struct net_device * netdev
Definition gdbudp.c:53
#define for_each_netdev(netdev)
Iterate over all network devices.
Definition netdevice.h:547
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
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Definition tables.h:386

References for_each_netdev, for_each_table_entry, netdev, routing_family::print, and ROUTING_FAMILIES.

Referenced by COMMAND(), ipv6_table_okx(), netboot(), REQUIRING_SYMBOL(), route_exec(), and usb_route_string().