NAME

Traversal - Saves the state of network traversal


SYNOPSIS

        use DBI;
        use Traversal;

        my $dbh = DBI->connect(...);
        my $traverser = new Traversal( dbHandle=>$dbh );

        print $traverser->address

        print $traverser->findServer

        print $traverser->findNetwork

        print $traverser->check

        $traverser->insert(IPaddress=>$ipaddress, networkAddress=>$netadd, isRouter=>'t')

        $traverser->update(IPaddress=>$ipaddress, isTraversed=>'t', isOnline=>'f')

        $traverser->scanned(IPaddress=>$ipaddress, isScanned=>'t')

        $traverser->router(IPaddress=>$ipaddress, isRouter=>'t')


DESCRIPTION

Traversal adds an IP address and its network address to the traversal table. This performs a breadth-first algorithm when it comes to traversing the entire network. It also saves the state of each machine whether its a router or a server, online or offline and scanned or unscanned.


METHODS

        new() - creates a new traversal

                dbHandle - database handle

        address() - returns an IP address to be traversed

        findServer() - returns a server IP address to be scanned for open ports

        findNetwork() - returns the network address where a server is connected

        check() - returns whether an IP address has already been traversed

        insert() - add a new entry to the traversal table

        update() - modify a newly traversed IP address by setting its is_traversed field to true and its is_online field
                   to true or false

        scanned() - modify an IP address by setting its is_scanned field to true

        router() - modify an IP address by setting its is_router field to true


AUTHORS

Traversal is supported as part of the core Pawikan distribution. Please send bug report to <netapps@pregi.net> or use the bugzilla.

Edwin Viñas <edwinv@asti.dost.gov.ph>

Jerremeo Raynier Gabás <ren@asti.dost.gov.ph>

René Mendoza <renem@asti.dost.gov.ph>

Rey Vincent Babilonia <rvincent@asti.dost.gov.ph>

Paul Afroilan <paula@asti.dost.gov.ph>


COPYRIGHT

Copyright (c) 2004 Philippine Research, Education and Government Information Network. All rights reserved. This program is part of the Pawikan distribution; you can redistribute it and/or modify it under the same terms as Pawikan itself.