Data Structures | Macros | Functions
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...


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


void route (void)
 Print routing table. More...

Detailed Description

Routing management.

Definition in file route.h.

Macro Definition Documentation


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

Routing family table.

Definition at line 25 of file route.h.

◆ __routing_family

#define __routing_family (   order)    __table_entry ( ROUTING_FAMILIES, order )

Declare a routing family.

Definition at line 28 of file route.h.


#define ROUTING_IPV4   01

Definition at line 30 of file route.h.


#define ROUTING_IPV6   02

Definition at line 31 of file route.h.

Function Documentation



◆ route()

void route ( void  )

Print routing table.

Definition at line 39 of file route.c.

39  {
40  struct net_device *netdev;
41  struct routing_family *family;
45  family->print ( netdev );
46  }
47  }
48 }
Routing family table.
Definition: route.h:25
static struct net_device * netdev
Definition: gdbudp.c:52
A routing family.
Definition: route.h:15
void(* print)(struct net_device *netdev)
Print routes for a network device.
Definition: route.h:21
#define for_each_netdev(netdev)
Iterate over all network devices.
Definition: netdevice.h:543
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Definition: tables.h:385
A network device.
Definition: netdevice.h:352

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

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