aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_interfaces_edit.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_interfaces_edit.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_interfaces_edit.php')
-rw-r--r--config/suricata/suricata_interfaces_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/suricata/suricata_interfaces_edit.php b/config/suricata/suricata_interfaces_edit.php
index 4a805ea2..74344072 100644
--- a/config/suricata/suricata_interfaces_edit.php
+++ b/config/suricata/suricata_interfaces_edit.php
@@ -196,10 +196,10 @@ if ($_POST["Submit"]) {
if ($_POST['alertsystemlog'] == "on") { $natent['alertsystemlog'] = 'on'; }else{ $natent['alertsystemlog'] = 'off'; }
if ($_POST['configpassthru']) $natent['configpassthru'] = base64_encode($_POST['configpassthru']); else unset($natent['configpassthru']);
- $if_real = suricata_get_real_interface($natent['interface']);
+ $if_real = get_real_interface($natent['interface']);
if (isset($id) && $a_rule[$id]) {
if ($natent['interface'] != $a_rule[$id]['interface']) {
- $oif_real = suricata_get_real_interface($a_rule[$id]['interface']);
+ $oif_real = get_real_interface($a_rule[$id]['interface']);
suricata_stop($a_rule[$id], $oif_real);
exec("rm -r /var/log/suricata_{$oif_real}" . $a_rule[$id]['uuid']);
exec("mv -f {$suricatadir}/suricata_" . $a_rule[$id]['uuid'] . "_{$oif_real} {$suricatadir}/suricata_" . $a_rule[$id]['uuid'] . "_{$if_real}");
@@ -302,7 +302,7 @@ if ($_POST["Submit"]) {
$pconfig = $_POST;
}
-$if_friendly = suricata_get_friendly_interface($pconfig['interface']);
+$if_friendly = convert_friendly_interface_to_friendly_descr($pconfig['interface']);
$pgtitle = gettext("Suricata: Interface {$if_friendly} - Edit Settings");
include_once("head.inc");
?>