Project

General

Profile

« Previous | Next » 

Revision 35e1cbde

Added by Jim Pingle over 9 years ago

Fix handling of promicuous checkbox on packet capture. Fixes #5896

View differences:

src/usr/local/www/diag_packet_capture.php
149 149
if ($_POST) {
150 150
	$host = $_POST['host'];
151 151
	$selectedif = $_POST['interface'];
152
	$promiscuous = isset($_POST['promiscuous']);
152 153
	$count = $_POST['count'];
153 154
	$snaplen = $_POST['snaplen'];
154 155
	$port = $_POST['port'];
......
306 307
	'promiscuous',
307 308
	'Promiscuous',
308 309
	'Packet capture will be performed using promiscuous mode',
309
	$pconfig['promiscuous']
310
	$promiscuous
310 311
))->setHelp('Note: Some network adapters do not support or work well in promiscuous mode.'. '<br />' .
311 312
			'More: ' . '<a target="_blank" href="http://www.freebsd.org/cgi/man.cgi?query=tcpdump&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+8.3-stable&amp;arch=default&amp;format=html">' .
312 313
			'Packet capture' . '</a>');

Also available in: Unified diff