Skip Menu |

This queue is for tickets about the Text-DHCPLeases CPAN distribution.

Report information
The Basics
Id: 93410
Status: new
Priority: 0/
Queue: Text-DHCPLeases

People
Owner: Nobody in particular
Requestors: abe [...] deuxchevaux.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Text::DHCPLeases can't parse ISC DHCP's dhcpd6.leases file
Date: Thu, 27 Feb 2014 16:58:34 +0100
To: bug-Text-DHCPLeases [...] rt.cpan.org
From: Axel Beckert <abe [...] deuxchevaux.org>
Hi, this is more or less a feature wish. I'm running an ISC DHCP server version 4.2.4 with DHCP and DHCPv6. I was looking for something to extract the DHCPv6 DUIDs from the dhcpd6.leases file, but Text::DHCPLeases 1.0 bailed out when trying to parsing it: $ # perl -MText::DHCPLeases -le 'Text::DHCPLeases->new(file => "/var/lib/dhcp/dhcpd6.leases");' Text::DHCPLeases::_parse Error: Declaration header not recognized: 'ia-na "\001\000\000\000\000\001\000\001\025\356Bt(77\031Tf"' at -e line 1 Example entry from that file: ia-na "\261({T\000\001\000\001\032\242\006G\000#T{(\261" { cltt 4 2014/02/27 14:20:57; iaaddr 2001:67c:10ec:3dd1::31a { binding state expired; preferred-life 375; max-life 600; ends 4 2014/02/27 14:30:57; } } The IPv4/DHCP(v4) file dhcpd.leases of ISC DHCP 4.2.4 is parsed without errors by Text::DHCPLeases 1.0. Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)