Patrice Auffret
and 1 contributors

NAME

Net::Routing - manage route entries on Operating Systems

SYNOPSIS

   use Net::Routing qw(:constants);

   my $route = Net::Routing->new(
      target => NR_TARGET_ALL(),
      family => NR_FAMILY_INET4(),
   );

   $route->list;

DESCRIPTION

This modules is currently just a wrapper around the netstat binary command to query routes on the local machine. Its aim is to normalize the way operating systems display network routes, and makes easy for other Perl modules to query interface routes (Net::Frame, for instance).

METHODS

new (ARGS)

Class constructor. Optional target argument can be specified to limit routes to only those matching the target type.

list

Will print selected routes in a 'netstat' way.

get

SEE ALSO

Net::Frame, Net::Frame::Device

AUTHOR

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE

Copyright (c) 2015, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.