No description
This repository has been archived on 2026-08-22. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Henning Thorsen 336c60e84e 0.0502 Sat Jun 19 13:58:10 CEST 2010
- Fix 10-filter.t: failed in any other timezone than CEST
2010-06-19 13:58:10 +02:00
lib/POE/Filter/DHCPd 0.0502 Sat Jun 19 13:58:10 CEST 2010 2010-06-19 13:58:10 +02:00
t 0.0502 Sat Jun 19 13:58:10 CEST 2010 2010-06-19 13:58:10 +02:00
.gitignore new version 2009-07-21 14:53:04 +02:00
Changes 0.0502 Sat Jun 19 13:58:10 CEST 2010 2010-06-19 13:58:10 +02:00
Makefile.PL updated tests and Makefile.PL 2010-04-21 10:33:21 +02:00
README 0.0502 Sat Jun 19 13:58:10 CEST 2010 2010-06-19 13:58:10 +02:00

NAME
    POE::Filter::DHCPd::Lease - parses leases from isc dhcpd leases file

VERSION
    0.0502

METHODS
  new
     my $filter = POE::Filter::DHCPd::Lease->new;

  get_one_start
     $self->get_one_start($stream);

    $stream is an array-ref of data, that will eventually be parsed into a
    qualified lease, returned by get() or get_one.

  get_one
     $leases = $self->get_one;

    $leases is an array-ref, containing zero or one leases.

     starts      => epoch value
     ends        => epoch value
     binding     => "active" or "free"
     hw_ethernet => 12 chars, without ":"
     hostname    => the client hostname
     circuit_id  => circuit id from relay agent (option 82)
     remote_id   => remote id from relay agent (option 82)

  get
    See POE::Filter.

  put
    Returns an empty string. Should not be used.

  get_pending
     my $buffer = $self->get_pending;

    Returns any data left in the buffer.

AUTHOR
    Jan Henning Thorsen, "<jhthorsen-at-cpan-org>"

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.