Annotation of embedaddon/freevrrpd/vrrp_define.h, revision 1.1

1.1     ! misho       1: /*
        !             2:  * Copyright (c) 2001,2002 Sebastien Petit <spe@bsdfr.org>
        !             3:  *
        !             4:  * Redistribution and use in source forms, with and without modification,
        !             5:  * are permitted provided that the following conditions are met:
        !             6:  * 1. Redistributions of source code must retain the above copyright notice,
        !             7:  *    this list of conditions and the following disclaimer.
        !             8:  * 2. Redistributions in binary form must reproduce the above copyright notice,
        !             9:  *    this list of conditions and the following disclaimer in the documentation
        !            10:  *    and/or other materials provided with the distribution. Obviously, it
        !            11:  *    would be nice if you gave credit where credit is due but requiring it
        !            12:  *    would be too onerous.
        !            13:  * 3. All advertising materials mentioning features or use of this software
        !            14:  *    must display the following acknowledgement:
        !            15:  *      This product includes software developed by Sebastien Petit.
        !            16:  * 4. Neither the name of its contributors may be used to endorse or promote
        !            17:  *    products derived from this software without specific prior written
        !            18:  *    permission.
        !            19:  *
        !            20:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
        !            21:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            22:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            23:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
        !            24:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            25:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            26:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            27:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            28:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            29:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            30:  * SUCH DAMAGE.
        !            31:  *
        !            32:  * $Id: vrrp_define.h,v 1.6 2004/03/30 23:45:28 rival Exp $
        !            33:  */
        !            34: 
        !            35: /*
        !            36:  * The virtual router can have three different states set on vrrp_vr struct
        !            37:  * RFC2338-6.4.1 to RFC2338-6.4.3
        !            38:  */
        !            39: #define VRRP_STATE_INITIALIZE 0
        !            40: #define VRRP_STATE_MASTER 1
        !            41: #define VRRP_STATE_BACKUP 2
        !            42: #define VRRP_PRIORITY_DEFAULT 100
        !            43: #define VRRP_PRIORITY_MASTER 255
        !            44: #define VRRP_AUTH_DATA_LEN 8
        !            45: #define VRRP_MULTICAST_IP "224.0.0.18"
        !            46: #define VRRP_MULTICAST_TTL 255
        !            47: #define VRRP_MULTICAST_DISABLE_LOOPBACK 0
        !            48: #define VRRP_PROTOCOL_VERSION 2
        !            49: #define VRRP_PROTOCOL_ADVERTISEMENT 1
        !            50: #define VRRP_INTERFACE_IPADDR_OWNER 1
        !            51: #define VRRP_USEC_COEFF 1000000
        !            52: #define VRRP_CONF_MAX_ARGS 255
        !            53: #define VRRP_DEFAULT_ADV_INT 1
        !            54: #define VRRP_DEFAULT_CARRIER_TIMEOUT 10
        !            55: #define VRRP_PROTOCOL_MAX_VRID 255
        !            56: #define VRRP_CONF_FILE_NAME "/usr/local/etc/freevrrpd.conf"
        !            57: #define VRRP_MONCIRCUIT_MONDELAY 1
        !            58: #define VRRP_MONCIRCUIT_MAX_ERRORS 5
        !            59: #define VRRP_MONCIRCUIT_CLEAR_ERRORS 3600
        !            60: #define IPPROTO_VRRP 112
        !            61: #define MAX_IP_ALIAS 255

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>