=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/Attic/ifstated.conf,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/etc/Attic/ifstated.conf 2005/02/03 17:51:12 1.5 --- src/etc/Attic/ifstated.conf 2005/02/07 06:08:10 1.6 *************** *** 1,4 **** ! # $OpenBSD: ifstated.conf,v 1.5 2005/02/03 17:51:12 mpf Exp $ # This is a sample config for a pair of firewalls with two interfaces # # carp0 and carp1 have ip addresses on 192.168.3.0/24 and 192.168.6.0/24 --- 1,4 ---- ! # $OpenBSD: ifstated.conf,v 1.6 2005/02/07 06:08:10 david Exp $ # This is a sample config for a pair of firewalls with two interfaces # # carp0 and carp1 have ip addresses on 192.168.3.0/24 and 192.168.6.0/24 *************** *** 37,44 **** run "ifconfig carp0 advskew 10" run "ifconfig carp1 advskew 10" } ! if ! $net ! set-state demoted } state demoted { --- 37,44 ---- run "ifconfig carp0 advskew 10" run "ifconfig carp1 advskew 10" } ! if ! $net ! set-state demoted } state demoted { *************** *** 46,53 **** run "ifconfig carp0 advskew 254" run "ifconfig carp1 advskew 254" } ! if $net ! set-state primary } state promoted { --- 46,53 ---- run "ifconfig carp0 advskew 254" run "ifconfig carp1 advskew 254" } ! if $net ! set-state primary } state promoted { *************** *** 65,71 **** run "ifconfig carp1 advskew 100" } # The "sleep 5" below is a hack to dampen the $carp_sync when we come ! # out of promoted state. Thinking about the correct fix... if ! $carp_sync && $net && "sleep 5" every 10 if ! $carp_sync && $net set-state promoted --- 65,71 ---- run "ifconfig carp1 advskew 100" } # The "sleep 5" below is a hack to dampen the $carp_sync when we come ! # out of promoted state. Thinking about the correct fix... if ! $carp_sync && $net && "sleep 5" every 10 if ! $carp_sync && $net set-state promoted