VRRP Library Functions vrrp_setprop(3VRRP) NAME vrrp_setprop - set the properties a VRRP instance SYNOPSIS cc [ flag ... ] file ... -lvrrp [ library ... ] #include vrrp_ret_t vrrp_set_inst(const char *name, vrpri_t priority, int delay, int preempt, int accept); DESCRIPTION The vrrp_setprop() function sets the properties of a running VRRP instance identified by name. The value of all properties can be VI_PROP_UNCHANGE which will leave the property unchanged. If the required instance does not exist, the function will fail with VRRP_ENOINST. #define VI_PROP_UNCHANGE -1 #define VI_PROP_PREEMPT 1 #define VI_PROP_UNPREEMPT 0 #define VI_PROP_ACCEPT 1 #define VI_PROP_NOTACCEPT 0 This function requires the PRIV_SYS_NET_CONFIG and PRIV_NET_RAWACCESS privileges. If the caller doesn't have enough privileges, the attempt fails with VRRP_ENOPERM. RETURN VALUES Upon success, VRRP_SUCCESS is returned. If VRRP_ESYS is returned, errno contains the specific UNIX system error value. Otherwise, a VRRP error value defined in or listed in the following section is returned. ERRORS VRRP_ENOINST VRRP instance does not exist VRRP_ENOPERM Insufficient privilege ATTRIBUTES See attributes(5) for description of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Project Private | |_____________________________|_____________________________| | MT-Level | Safe | |_____________________________|_____________________________| SEE ALSO libvrrp(3LIB), vrrpadm(1M), vrrpd(1M)