summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2015-07-17 23:32:27 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2015-07-17 23:32:27 +0200
commit0299cfd753fb468e20605c62e4147c77529e0aae (patch)
tree006d1639f5366c4b41b4cce3a4b3f377a94f0444 /includes
parent19a4bd4a874af9623cee62685d985c9676c547de (diff)
Add config variables to change ping and traceroute options.
With ping only the options can be changed to match what the user wants. With traceroute the options and the binary can be changed (some people prefer to use mtr instead of traceroute). Please refer to the documentation to see how it works.
Diffstat (limited to 'includes')
-rw-r--r--includes/config.defaults.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/includes/config.defaults.php b/includes/config.defaults.php
index 87c6dae..5aa9e39 100644
--- a/includes/config.defaults.php
+++ b/includes/config.defaults.php
@@ -93,6 +93,23 @@ $config = array(
'allow_reserved_ip' => true
),
+ // Tools used for some processing
+ 'tools' => array(
+ // Options to be used when pinging from a UNIX host (case of BIRD
+ // and Quagga)
+ 'ping_options' => '-A -c 10',
+ // Source option to use when pinging
+ 'ping_source_option' => '-I',
+ // Traceroute tool to be used (can be traceroute or mtr)
+ 'traceroute4' => 'traceroute -4',
+ 'traceroute6' => 'traceroute -6',
+ // Options to be used when tracerouting from a UNIX host (case of BIRD
+ // and Quagga)
+ 'traceroute_options' => '-A -q1 -N32 -w1 -m15',
+ // Source option to use when tracerouting
+ 'traceroute_source_option' => '-s'
+ ),
+
// Documentation (must be HTML)
'doc' => array(
// Documentation for the 'show route' query