Data Structures | Defines | 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.
#define __routing_family(order)   __table_entry ( ROUTING_FAMILIES, order )
 Declare a routing family.
#define ROUTING_IPV4   01
#define ROUTING_IPV6   02


void route (void)
 Print routing table.

Detailed Description

Routing management.

Definition in file route.h.

Define Documentation

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

Routing family table.

Definition at line 25 of file route.h.

Referenced by route().

#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

void route ( void  )

Print routing table.

Definition at line 39 of file route.c.

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().

        struct net_device *netdev;
        struct routing_family *family;

        for_each_netdev ( netdev ) {
                for_each_table_entry ( family, ROUTING_FAMILIES ) {
                        family->print ( netdev );