|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/StaticRoute.pm |
new([%args])set_prefix($prefix)get_prefix()set_network($network[, $mask])get_network()set_mask($mask)get_mask()set_destination($ip)get_destination()
IPDevice::RouterBase::StaticRoute
use IPDevice::RouterBase::StaticRoute;
my $route = new IPDevice::RouterBase::StaticRoute;
$route->set_network('192.168.0.0', '255.255.255.0');
$route->set_destination('10.10.10.1);
This module provides routines for storing informations regarding a single IP route.
new([%args])Object constructor. Valid arguments: none.
set_prefix($prefix)Check & set the IP prefix to be routed. Returns FALSE if the prefix is invalid, otherwise TRUE.
get_prefix()Returns the IP prefix.
set_network($network[, $mask])Set the IP network address and, optionally, the mask.
get_network()Returns the IP network address.
set_mask($mask)Set the IP mask.
get_mask()Returns the IP mask.
set_destination($ip)Set the destination IP address. Returns TRUE if the ip is valid, otherwise FALSE.
get_destination()Returns the destination IP address.
Copyright (c) 2004 Samuel Abels. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Samuel Abels <spam debain org>
|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/StaticRoute.pm |