Net::Route::Table(3pm)

Net::Route::Table3pm

A routing table, such as your system's.

Usage

    use Net::Route::Table;
    $table_ref = Net::Route::Table->from_system();
    my $default_route_ref = $table_ref->default_route();
    my $routes_ref = $table_ref->all_routes();

Version

Revision $Revision: 363 $.

Overview

This class represents a routing table. It can be read from the system and gives access to appropriate selections of routes.

Interface

Class Methods

from_system()

Returns the system's routing table as a Net::Route::Table object.

Object Methods

default_route()

Returns the current default route of the system as a Net::Route object.

all_routes()

Returns the complete routing table as an arrayref of Net::Route objects. The active routes are listed first, then the results are sorted by increasing metric.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–11
  2. 12
  3. 13

Author

Created by Alexandre Storoz, "<[email protected]>"

Maintained by Thomas Equeter, "<[email protected]>"

From libnet-route-perl 0.02-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.