Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 75185
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: marka [...] isc.org
Cc:
AdminCc:

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



Subject: Net-DNS-0.68
Date: Tue, 21 Feb 2012 15:57:43 +1100
To: bug-Net-DNS [...] rt.cpan.org
From: Mark Andrews <marka [...] isc.org>

Message body is not shown because it is too large.

Subject: Net-DNS-0.68 backward compatibility
From: rwfranks [...] acm.org
Mark, Thanks for problem report and other helpful suggestions. I will work on solving problems (1) and (2) for next release. Dick
From: rwfranks [...] acm.org
Mark, 1) Header.pm is an internal component of a Packet object. The encode/decode methods are not intended to be used outside that context. Your code example encountered this issue because there was no means of discovering the length of the packet data actually decoded. A mechanism has now been added: my ( $packet, $length ) = new Net::DNS::Packet( \$buffer ); 2) Packet decoding is now done in one place and no reference to the data buffer is retained. There is a performance penalty for doing that, but we will need to live with that or claw it back elsewhere. 3) A special reply() constructor has been added to Packet.pm my $reply = $query->reply(); Dick