FreeBSD Bugzilla – Bug 192037
net-mgmt/smokeping: AnotherDNS plugin broken
Last modified: 2014-07-23 22:58:22 UTC
Created attachment 144877 [details]
Patch for AnotherDNS.pm
AnotherDNS plugin is broken with modern Net::DNS. I've filed a bug upstream and sent a pull request but haven't heard back from Tobias yet.
Attached diff fixes it for our users.
Hi Feld, you could assigned this directly I think.
Hard-coding the value this way works, but PACKETSZ is in fact a constant declared in Net::DNS::Resolver::Base and can be used that way :
$ready->recv( $buf, Net::DNS::Resolver::Base::PACKETSZ);
Can you try this option and give me a feedback asap ?
Is Net::DNS::Resolver::Base::PACKETSZ part of the documented API? I haven't investigated; just checking. Wouldn't want to get us into the same situation down the road.
I'll test ASAP.
Yes this appears to be working.
A commit references this bug:
Date: Wed Jul 23 13:41:08 UTC 2014
New revision: 362694
Fix a minima the plugin breakage introduced by Net::DNS 0.75 and above.
This bug is complex and must be fixed upstream (smokeping).
Submitted by: feld
Reviewed by: rodrigo (maintainer)
Approved by: kwm (mentor)
commited with minor changes