summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_packet_capture.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-07-28 19:32:11 -0400
committerChris Buechler <cmb@pfsense.org>2010-07-28 19:32:11 -0400
commit68ed7d9d2001767be7f90132f8e23b05d34020f0 (patch)
tree9b0e48cea5931da99af371b238c67be09c036941 /usr/local/www/diag_packet_capture.php
parentebf94efb5c5b79d1aa394ffe8d392c1f1ab64b13 (diff)
downloadpfsense-68ed7d9d2001767be7f90132f8e23b05d34020f0.zip
pfsense-68ed7d9d2001767be7f90132f8e23b05d34020f0.tar.gz
fix text, use more sane default snaplen, remove bunk bridge check. Still one problem here, it doesn't display anything in the output box in the web interface though it's running the correct command and the pcap file is fine.
Diffstat (limited to 'usr/local/www/diag_packet_capture.php')
-rw-r--r--usr/local/www/diag_packet_capture.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index e49d969..d7c779c 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -41,7 +41,7 @@ require_once("pfsense-utils.inc");
$fp = "/root/";
$fn = "packetcapture.cap";
-$snaplen = 1500;//default packet length
+$snaplen = 0;//default packet length
$count = 100;//default number of packets to capture
if ($_POST) {
@@ -119,12 +119,12 @@ include("fbegin.inc");
$interfaces = get_configured_interface_with_descr();
foreach ($interfaces as $iface => $ifacename):
?>
- <option value="<?=$iface;?>" <?php if (!link_interface_to_bridge($iface) && $selectedif == $iface) echo "selected"; ?>>
+ <option value="<?=$iface;?>" <?php if ($selectedif == $iface) echo "selected"; ?>>
<?php echo $ifacename;?>
</option>
<?php endforeach;?>
</select>
- <br/><?=gettext("Select the interface the traffic will be passing through. Typically this will be the WAN interface.");?>
+ <br/><?=gettext("Select the interface on which to capture traffic. ");?>
</td>
</tr>
<tr>
@@ -148,7 +148,7 @@ include("fbegin.inc");
<td width="17%" valign="top" class="vncellreq"><?=gettext("Packet Length");?></td>
<td width="83%" class="vtable">
<input name="snaplen" type="text" class="formfld unknown" id="snaplen" size="5" value="<?=$snaplen;?>">
- <br/><?=gettext("The Packet length is the number of bytes the packet will capture for each payload. Default value is 1500.");?>
+ <br/><?=gettext("The Packet length is the number of bytes of each packet that will be captured. Default value is 0, which will capture the entire frame regardless of its size.");?>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud