summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2006-10-25 21:59:22 +0200
committerTobi Oetiker <tobi@oetiker.ch>2006-10-25 21:59:22 +0200
commit556a41ddf75f302643b9f81c344ffb731a5d0093 (patch)
tree660baae07cc398bcb72513836075f22b1465afbb /lib/Smokeping/probes
parent48ac00bb2d537725a61fde25ad37c61035bf2d5f (diff)
downloadsmokeping-556a41ddf75f302643b9f81c344ffb731a5d0093.tar.gz
smokeping-556a41ddf75f302643b9f81c344ffb731a5d0093.tar.xz
lets be less extreem with regexps ... :-)
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r--lib/Smokeping/probes/FPing.pm2
-rw-r--r--lib/Smokeping/probes/FPing6.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm
index 0e62576..5c6f612 100644
--- a/lib/Smokeping/probes/FPing.pm
+++ b/lib/Smokeping/probes/FPing.pm
@@ -196,7 +196,7 @@ The minimum amount of time between sending a ping packet to any target.
DOC
},
sourceaddress => {
- _re => '(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}',
+ _re => '\d+(\.\d+){3}',
_example => '192.168.0.1',
_doc => <<DOC,
The fping "-S" parameter . From fping(1):
diff --git a/lib/Smokeping/probes/FPing6.pm b/lib/Smokeping/probes/FPing6.pm
index aa3af46..308d4ff 100644
--- a/lib/Smokeping/probes/FPing6.pm
+++ b/lib/Smokeping/probes/FPing6.pm
@@ -46,7 +46,7 @@ sub probevars {
my $self = shift;
my $h = $self->SUPER::probevars;
$h->{binary}{_example} = "/usr/bin/fping6";
- $h->{sourceaddress}{_re} = "(?:(?:(?:(?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::(?:(?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?))|(?:(?:(?:[0-9A-Fa-f]{1,4}:){6,6})(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3})|(?:(?:(?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::(?:(?:[0-9A-Fa-f]{1,4}:)*)(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}))";
+ $h->{sourceaddress}{_re} = "[0-9A-Fa-f:.]+";
return $h;
}