Why not adopt me?
NAME
Net::Route - Portable interface to your system's routing table
SYNOPSIS
use Net::Route::Table;
my $table_ref = Net::Route::Table->from_system();
my $route_ref = $table_ref->default_route();
print "Default gateway: ", $route_ref->gateway(), "\n";
VERSION
Version 0.00_01, $Revision: 220 $
DESCRIPTION
The Net::Route Module
Every OS provides its custom interface to the routing table: Linux' route
utility is different from BSD's route show
, from Windows' route print
, etc. Parsing all these different output styles in an (otherwise portable) script can quickly become inconvenient.
Net::Route abstracts the system specifics and hides them behind a single interface.
The Net::Route Class
Net::Route objects represent single entries from a Net::Route::Table.
INTERFACE
This documents Net::Route as a class. To know how to use the module, refer to the SYNOPSIS or Net::Route::Table (the entry point from a user perspective).
Object Methods
destination()
gateway()
metric()
interface()
is_active()
is_dynamic()
BUGS
Please report any bugs or feature requests to bug-net-route at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Route. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::Route
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
AUTHOR
Created by Alexandre Storoz, <astoroz@straton-it.fr>
Maintained by Thomas Equeter, <tequeter@straton-it.fr>
LICENSE AND COPYRIGHT
Copyright (C) 2009 Straton IT.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.