Skip Menu |

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

Report information
The Basics
Id: 96479
Status: rejected
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: bsdgeek [...] optonline.net
Cc:
AdminCc:

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



Subject: Net::DNS 0.75 and above breaks smokepingD
Date: Mon, 16 Jun 2014 16:33:12 -0400 (EDT)
To: bug-Net-DNS [...] rt.cpan.org
From: bsdgeek [...] optonline.net
When using Net::DNS 0.75 and above, I get the following error message when running smokeping-2.6.9. Undefined subroutine &Net::DNS::PACKETSZ called at /usr/local/smokeping/lib/Smokeping/probes/AnotherDNS.pm line 98. Snippet of code surrounding the above line: 96 if ( defined $ready ) { 97 my $buf = ''; 98 $ready->recv( $buf, &Net::DNS::PACKETSZ ); 99 my ($recvPacket, $err) = Net::DNS::Packet->new(\$buf); 100 if (defined $recvPacket) { 101 my $recvHeader = $recvPacket->header(); 102 next if $recvHeader->ancount() < $target->{vars}{require_answers}; 103 if (not $require_noerror) { 104 push @times, $elapsed; 105 } else { 106 # Check the Response Code for the NOERROR. 107 if ($recvHeader->rcode() eq "NOERROR") { 108 push @times, $elapsed; 109 } 110 } 111 } 112 } development:/root->perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for i386-freebsd-thread-multi-64int uname -a FreeBSD development.c-ad.bnl.gov 9.1-RELEASE-p14 FreeBSD 9.1-RELEASE-p14 #0: Tue Jun 3 08:49:09 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 More detail available upon request, I have no patch for this issue. Thanks in advance.
From: rwfranks [...] acm.org
On Mon Jun 16 16:33:25 2014, bsdgeek@optonline.net wrote: Show quoted text
> When using Net::DNS 0.75 and above, I get the following error message > when running smokeping-2.6.9. > > Undefined subroutine &Net::DNS::PACKETSZ called at > /usr/local/smokeping/lib/Smokeping/probes/AnotherDNS.pm line 98. >
&Net::DNS::PACKETSZ is not, and never was, part of the documented API. Packet size is not fixed. This is negotiated using EDNS protocol. The constant subroutine PACKETSZ has been removed because it no longer has any meaning.
From: rwfranks [...] acm.org
On Mon Jun 16 16:33:25 2014, bsdgeek@optonline.net wrote: Show quoted text
> When using Net::DNS 0.75 and above, I get the following error message > when running smokeping-2.6.9. > > Undefined subroutine &Net::DNS::PACKETSZ called at > /usr/local/smokeping/lib/Smokeping/probes/AnotherDNS.pm line 98. >
Passed to support@oetiker.ch Ticket ID [O+P 22461]
Reported with smokeping by Dick Franks. Thanks Dick.
From: rwfranks [...] acm.org
On Mon Jul 28 11:17:22 2014, rwfranks@acm.org wrote: Show quoted text
> On Mon Jun 16 16:33:25 2014, bsdgeek@optonline.net wrote:
> > When using Net::DNS 0.75 and above, I get the following error message > > when running smokeping-2.6.9. > > > > Undefined subroutine &Net::DNS::PACKETSZ called at > > /usr/local/smokeping/lib/Smokeping/probes/AnotherDNS.pm line 98. > >
> > Passed to support@oetiker.ch > Ticket ID [O+P 22461]
On 4 August 2014 14:28, Tobias Oetiker via RT <support@oetiker.ch> wrote: Hi Dik, I have merged the relevant pull request ... thanks! cheers tobi