September 2002
Intermediate to advanced
560 pages
13h 16m
English
/*********************************************************
NAME : state_init
*********************************************************/
static void state_init( vrrp_rt *vsrv )
{
if( vsrv->priority == VRRP_PRIO_OWNER
|| vsrv->wantstate == VRRP_STATE_MAST ){
state_goto_master( vsrv );
} else {
int delay = 3*vsrv->adver_int +
VRRP_TIMER_SKEW(vsrv);
VRRP_TIMER_SET( vsrv->ms_down_timer, delay );
vsrv->state = VRRP_STATE_BACK;
}
}
This is the initialize state when a physical router participating in VRRP initializes. If the priority configured on the physical router is 255 for the virtual router it is representing, the physical router transitions to master right away by calling state_goto_master(). If the priority ...
Read now
Unlock full access