summaryrefslogtreecommitdiff
path: root/scripts/keepalived
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-05-22 18:35:32 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-05-22 18:35:32 -0700
commitdf805435059fce399a070dab8d8497d0ec72b951 (patch)
tree2a298f368cf1e71e30b27a743f30561e792c61b5 /scripts/keepalived
parent6696d2352b157a869bcbe96a364aaf6b65cf9770 (diff)
downloadvyatta-cfg-quagga-df805435059fce399a070dab8d8497d0ec72b951.tar.gz
vyatta-cfg-quagga-df805435059fce399a070dab8d8497d0ec72b951.zip
Make vrrp pcap filter more specific.
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-xscripts/keepalived/VyattaKeepalived.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/keepalived/VyattaKeepalived.pm b/scripts/keepalived/VyattaKeepalived.pm
index 78421723..f4065766 100755
--- a/scripts/keepalived/VyattaKeepalived.pm
+++ b/scripts/keepalived/VyattaKeepalived.pm
@@ -42,7 +42,7 @@ sub snoop_for_master {
my $file = get_master_file($intf, $group);
- my $cap_filt = "-f \"host 224.0.0.18 and proto VRRP\"";
+ my $cap_filt = "-f \"host 224.0.0.18 and proto VRRP and ip[21:1] = $group\"";
my $dis_filt = "-R \"vrrp.virt_rtr_id == $group and vrrp.ip_addr == $vip\"";
my $options = "-a duration:$timeout -p -i$intf -c1 -T pdml";
my $cmd = "tshark $options $cap_filt $dis_filt";