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

NAME

NetworkInfo::Discovery::Detect - Super Class for all detection modules

SYNOPSIS

    See NetworkInfo::Discovery::(Sniff|Traceroute|Scan)
    for examples.

DESCRIPTION

NetworkInfo::Discovery::Detect is set up to be the super class of all the detection modules. It sets up the methods for setting and getting the discovered information about interfaces, gateways, and subnets.

METHODS

new

just set up lists for holding interfaces, subnets, and gateways

do_it

this needs to be implemented in the subclass. it should do what ever it does to detect interfaces, gateways, or subnets adding them to our lists by using the add_* methods below.

get_interfaces
get_gateways
get_subnets

returns a list of hash references for interfaces, gateways, or subnets.

add_interface ($hashref)
add_gateway ($hashref)
add_subnet ($hashref)

adds the hash ref to the list of interfaces, gateways, or subnets.

AUTHOR

Tom Scanlan <tscanlan@they.gotdns.org>

SEE ALSO

NetworkInfo::Discovery::Sniff

NetworkInfo::Discovery::Traceroute

NetworkInfo::Discovery::Scan

BUGS

Please send any bugs to Tom Scanlan <tscanlan@they.gotdns.org>