Net::Routing - manage route entries on Operating Systems
use Net::Routing qw(:constants); my $route = Net::Routing->new( target => NR_TARGET_ALL(), family => NR_FAMILY_INET4(), ); $route->list;
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).
- new (ARGS)
Class constructor. Optional target argument can be specified to limit routes to only those matching the target type.
Will print selected routes in a 'netstat' way.
Patrice <GomoR> Auffret
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.