aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/smokeping/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/smokeping/files')
-rw-r--r--net-mgmt/smokeping/files/patch-lib__Smokeping__probes__AnotherDNS.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/smokeping/files/patch-lib__Smokeping__probes__AnotherDNS.pm b/net-mgmt/smokeping/files/patch-lib__Smokeping__probes__AnotherDNS.pm
new file mode 100644
index 000000000000..ebe95b71a470
--- /dev/null
+++ b/net-mgmt/smokeping/files/patch-lib__Smokeping__probes__AnotherDNS.pm
@@ -0,0 +1,20 @@
+--- lib/Smokeping/probes/AnotherDNS.pm.orig 2012-07-09 09:45:46.000000000 +0000
++++ lib/Smokeping/probes/AnotherDNS.pm 2014-07-22 23:07:45.626343897 +0000
+@@ -25,6 +25,8 @@
+ use IO::Select;
+ use Net::DNS;
+
++use constant PACKETSZ => 512;
++
+ sub pod_hash {
+ return {
+ name => <<DOC,
+@@ -95,7 +97,7 @@
+ $elapsed = tv_interval( $t0, $t1 );
+ if ( defined $ready ) {
+ my $buf = '';
+- $ready->recv( $buf, &Net::DNS::PACKETSZ );
++ $ready->recv( $buf, PACKETSZ );
+ my ($recvPacket, $err) = Net::DNS::Packet->new(\$buf);
+ if (defined $recvPacket) {
+ my $recvHeader = $recvPacket->header();