Jan Henning Thorsen

NAME

Net::DHCP::Info::Obj - Storage module for dhcp-information

VERSION

Version 0.01

DESCRIPTION

This module contains methods that can access the data Net::DHCP::Info has extracted. It inherits from NetAddr::IP, so it provides all the methods from that package as well.

SYNOPSIS

    use Net::DHCP::Info::Obj;

    my $ip  = "127.0.0.1";
    my $obj = Net::DHCP::Info::Obj->new($ip);

    $obj->mac("aa:b:02:3d:0:01");

    print $obj->mac; # prints the above mac

METHODS

binding

Returns the dhcp leases binding.

circuit_id

Returns the dhcp leases circuit id.

hostname

Returns the client-hostname

mac

Returns the dhcp leases mac.

range

Returns a list of ranges in a subnet in this format:

[$low_ip, $high_ip]

remote_id

Returns the dhcp leases remote id.

routers

Returns a list of routers in a subnet.

add_range

starts

starts_datetime

Returns the dhcp leases start time as string / DateTime object.

ends

ends_datetime

Returns the dhcp leases end time as string / DateTime object.

AUTHOR

Jan Henning Thorsen, <pm at flodhest.net>

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.




Hosting generously
sponsored by Bytemark