The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IPDevice::RouterBase::StaticRoute

SYNOPSIS

 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);

DESCRIPTION

This module provides routines for storing informations regarding a single IP route.

CONSTRUCTOR AND METHODS

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

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.

AUTHOR

Samuel Abels <spam debain org>