September 2002
Intermediate to advanced
560 pages
13h 16m
English
/*********************************************************
NAME : chk_min_cfg
*********************************************************/
static int chk_min_cfg( vrrp_rt *vsrv )
{
if( vsrv->naddr == 0 ){
fprintf(stderr, "provide at least one ip for the
virtual server\n");
return -1;
}
if( vsrv->vrid == 0 ){
fprintf(stderr, "the virtual id must be set!\n");
return -1;
}
if( vsrv->vif.ipaddr == 0 ){
fprintf(stderr, "the interface ipaddr must be
set!\n");
return -1;
}
return(0);
}
The function chk_min_cfg is used to check that the minimal user configuration required for a virtual router to function properly is present. All other values can have defaults even if the user failed to configure them. In ...
Read now
Unlock full access