" . gettext("Enter 0 (zero) for no count limit.");?>

" . gettext("Note:") . " " . gettext("This option does not affect the level of detail when downloading the packet capture.");?>
>

:
   "; else { echo " "; } if (file_exists($fp.$fn) and $processisrunning != true) { echo " "; echo ""; echo "
" . gettext("The packet capture file was last updated:") . " " . date("F jS, Y g:i:s a.", filemtime($fp.$fn)); } ?>
"; if ($processisrunning == true) echo("" . gettext("Packet Capture is running.") . "
"); if ($do_tcpdump) { $matches = array(); if (in_array($fam, $fams)) $matches[] = $fam; if (in_array($proto, $protos)) { if ($proto == "carp") { $matches[] = 'proto 112'; } else { $matches[] = $proto; } } if ($port != "") $matches[] = "port ".$port; if ($host != "") { if (is_ipaddr($host)) $matches[] = "host " . $host; elseif (is_subnet($host)) $matches[] = "net " . $host; } if ($count != "0" ) { $searchcount = "-c " . $count; } else { $searchcount = ""; } $selectedif = convert_friendly_interface_to_real_interface_name($selectedif); if ($action == gettext("Start")) { $matchstr = implode($matches, " and "); echo("" . gettext("Packet Capture is running.") . "
"); mwexec_bg ("/usr/sbin/tcpdump -i $selectedif $searchcount -s $packetlength -w $fp$fn $matchstr"); // echo "/usr/sbin/tcpdump -i $selectedif $searchcount -s $packetlength -w $fp$fn $matchstr"; } else { //action = stop echo("" . gettext("Packet Capture stopped.") . "

" . gettext("Packets Captured:") . "

"); ?>