summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-22 09:26:08 -0400
committerjim-p <jimp@pfsense.org>2012-05-22 09:26:08 -0400
commit43d735deea71e4eb1fd0180a2e317018e371f6c6 (patch)
treea5b3f9cd8b7110aef8d5c2b44fd48d20e653df04 /usr/local
parent5a61fd69c9a0efe92216be8d4feb50ceb900e8cd (diff)
downloadpfsense-43d735deea71e4eb1fd0180a2e317018e371f6c6.zip
pfsense-43d735deea71e4eb1fd0180a2e317018e371f6c6.tar.gz
Use "proto 112" instead of tcpdump's vrrp keyword since it's a little behind the times and doesn't realize that ip6+vrrp is valid. And since we're not using the vrrp keyword directly anymore, let's call it CARP instead.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/diag_packet_capture.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 54e22c2..75b6e26 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -48,7 +48,7 @@ $snaplen = 0;//default packet length
$count = 100;//default number of packets to capture
$fams = array('ip', 'ip6');
-$protos = array('icmp', 'icmp6', 'tcp', 'udp', 'arp', 'vrrp', 'esp');
+$protos = array('icmp', 'icmp6', 'tcp', 'udp', 'arp', 'carp', 'esp');
if ($_POST) {
$do_tcpdump = true;
@@ -166,7 +166,7 @@ include("fbegin.inc");
<option value="tcp" <?php if ($proto == "tcp") echo "selected"; ?>>TCP</option>
<option value="udp" <?php if ($proto == "udp") echo "selected"; ?>>UDP</option>
<option value="arp" <?php if ($proto == "arp") echo "selected"; ?>>ARP</option>
- <option value="vrrp" <?php if ($proto == "vrrp") echo "selected"; ?>>VRRP (CARP)</option>
+ <option value="carp" <?php if ($proto == "carp") echo "selected"; ?>>CARP (VRRP)</option>
<option value="esp" <?php if ($proto == "esp") echo "selected"; ?>>ESP</option>
</select>
<br/><?=gettext("Select the protocol to capture, or Any.");?>
@@ -265,8 +265,13 @@ include("fbegin.inc");
if (in_array($fam, $fams))
$matches[] = $fam;
- if (in_array($proto, $protos))
- $matches[] = $proto;
+ if (in_array($proto, $protos)) {
+ if ($proto == "carp") {
+ $matches[] = 'proto 112';
+ } else {
+ $matches[] = $proto;
+ }
+ }
if ($port != "")
$matches[] = "port ".$port;
OpenPOWER on IntegriCloud