VRRP Library Functions vrrp_destroy(3VRRP) NAME vrrp_destroy - delete a VRRP instance SYNOPSIS cc [ flag ... ] file ... -lvrrp [ library ... ] #include vrrp_ret_t vrrp_destroy(const char *name); DESCRIPTION The vrrp_destroy() function deletes a VRRP instance identified by name. Using NULL as the argument will destroy all VRRP instance on the system. If the required instance does not exist, the function will fail with VRRP_ENOINST. 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)