From df805435059fce399a070dab8d8497d0ec72b951 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 22 May 2008 18:35:32 -0700 Subject: Make vrrp pcap filter more specific. --- scripts/keepalived/VyattaKeepalived.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.3