diff options
author | jim-p <jimp@pfsense.org> | 2016-02-16 08:48:11 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-02-16 08:48:11 -0500 |
commit | 35e1cbdeab83bc9a4cb867638ff4dd2b1d8c0d29 (patch) | |
tree | 13e2ab3070aa69511f9785700e3be7bc9d6e778f /src/usr | |
parent | 3c1ff638c98b0fb8e1e1b4d36994958fccea3e16 (diff) | |
download | pfsense-35e1cbdeab83bc9a4cb867638ff4dd2b1d8c0d29.zip pfsense-35e1cbdeab83bc9a4cb867638ff4dd2b1d8c0d29.tar.gz |
Fix handling of promicuous checkbox on packet capture. Fixes #5896
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/diag_packet_capture.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_packet_capture.php b/src/usr/local/www/diag_packet_capture.php index ad7bc06..a934361 100644 --- a/src/usr/local/www/diag_packet_capture.php +++ b/src/usr/local/www/diag_packet_capture.php @@ -149,6 +149,7 @@ foreach (array('server', 'client') as $mode) { if ($_POST) { $host = $_POST['host']; $selectedif = $_POST['interface']; + $promiscuous = isset($_POST['promiscuous']); $count = $_POST['count']; $snaplen = $_POST['snaplen']; $port = $_POST['port']; @@ -306,7 +307,7 @@ $section->addInput(new Form_Checkbox( 'promiscuous', 'Promiscuous', 'Packet capture will be performed using promiscuous mode', - $pconfig['promiscuous'] + $promiscuous ))->setHelp('Note: Some network adapters do not support or work well in promiscuous mode.'. '<br />' . 'More: ' . '<a target="_blank" href="http://www.freebsd.org/cgi/man.cgi?query=tcpdump&apropos=0&sektion=0&manpath=FreeBSD+8.3-stable&arch=default&format=html">' . 'Packet capture' . '</a>'); |