aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_check_for_rule_updates.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-02-19 23:10:40 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-02-19 23:10:40 -0500
commita5c40093adcb507d8d5991568a36702fcc649cdb (patch)
treee993283f12a6f7a3efadf4445fb13ffd6e74d446 /config/suricata/suricata_check_for_rule_updates.php
parentb33b9a9d050bd5bc8247fc4c95ff7bde39d612f2 (diff)
downloadpfsense-packages-a5c40093adcb507d8d5991568a36702fcc649cdb.tar.gz
pfsense-packages-a5c40093adcb507d8d5991568a36702fcc649cdb.tar.bz2
pfsense-packages-a5c40093adcb507d8d5991568a36702fcc649cdb.zip
Use system calls instead of wrappers for getting interface names.
Diffstat (limited to 'config/suricata/suricata_check_for_rule_updates.php')
-rw-r--r--config/suricata/suricata_check_for_rule_updates.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_check_for_rule_updates.php b/config/suricata/suricata_check_for_rule_updates.php
index ec39c203..9aa14f6e 100644
--- a/config/suricata/suricata_check_for_rule_updates.php
+++ b/config/suricata/suricata_check_for_rule_updates.php
@@ -617,14 +617,14 @@ if ($snortdownload == 'on' || $emergingthreats == 'on' || $snortcommunityrules =
/* Create configuration for each active Suricata interface */
foreach ($config['installedpackages']['suricata']['rule'] as $value) {
- $if_real = suricata_get_real_interface($value['interface']);
+ $if_real = get_real_interface($value['interface']);
// Make sure the interface subdirectory exists. We need to re-create
// it during a pkg reinstall on the intial rules set download.
if (!is_dir("{$suricatadir}suricata_{$value['uuid']}_{$if_real}"))
safe_mkdir("{$suricatadir}suricata_{$value['uuid']}_{$if_real}");
if (!is_dir("{$suricatadir}suricata_{$value['uuid']}_{$if_real}/rules"))
safe_mkdir("{$suricatadir}suricata_{$value['uuid']}_{$if_real}/rules");
- $tmp = "Updating rules configuration for: " . suricata_get_friendly_interface($value['interface']) . " ...";
+ $tmp = "Updating rules configuration for: " . convert_friendly_interface_to_friendly_descr($value['interface']) . " ...";
if ($pkg_interface <> "console"){
update_status(gettext($tmp));
update_output_window(gettext("Please wait while Suricata interface files are being updated..."));