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

NAME

Net::DHCP::Info - Fast dhcpd.leases and dhcpd.conf parser

VERSION

Version 0.01

SYNOPSIS

    use Net::DHCP::Info;

    my $conf  = Net::DHCP::Info->new($path_to_dhcpd_conf);
    my $lease = Net::DHCP::Info->new($path_to_dhcpd_leases);

    while(my $net = $conf->fetch_subnet) {
        # .. do stuff with $net
    }

    while(my $lease = $lease->fetch_lease) {
        # .. do stuff with $lease
    }

METHODS

new

Object constructor. Takes one argument; a filename to parse. This can be either a dhcpd.conf or dhcpd.leases file.

fetch_subnet

This method returns an object of the Net::DHCP::Info::Obj class.

fetch_lease

This method returns an object of the Net::DHCP::Info::Obj class.

FUNCTIONS

fixmac

Takes a mac in various formats as an argument, and returns it as a 12 char string.

AUTHOR

Jan Henning Thorsen, <pm at flodhest.net>

BUGS

Please report any bugs or feature requests to bug-net-dhcp-info at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-DHCP-Info. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Net::DHCP::Info

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2007 Jan Henning Thorsen, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.