1*11076SCathy.Zhou@Sun.COM /* 2*11076SCathy.Zhou@Sun.COM * CDDL HEADER START 3*11076SCathy.Zhou@Sun.COM * 4*11076SCathy.Zhou@Sun.COM * The contents of this file are subject to the terms of the 5*11076SCathy.Zhou@Sun.COM * Common Development and Distribution License (the "License"). 6*11076SCathy.Zhou@Sun.COM * You may not use this file except in compliance with the License. 7*11076SCathy.Zhou@Sun.COM * 8*11076SCathy.Zhou@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*11076SCathy.Zhou@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*11076SCathy.Zhou@Sun.COM * See the License for the specific language governing permissions 11*11076SCathy.Zhou@Sun.COM * and limitations under the License. 12*11076SCathy.Zhou@Sun.COM * 13*11076SCathy.Zhou@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*11076SCathy.Zhou@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*11076SCathy.Zhou@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*11076SCathy.Zhou@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*11076SCathy.Zhou@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*11076SCathy.Zhou@Sun.COM * 19*11076SCathy.Zhou@Sun.COM * CDDL HEADER END 20*11076SCathy.Zhou@Sun.COM */ 21*11076SCathy.Zhou@Sun.COM /* 22*11076SCathy.Zhou@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*11076SCathy.Zhou@Sun.COM * Use is subject to license terms. 24*11076SCathy.Zhou@Sun.COM */ 25*11076SCathy.Zhou@Sun.COM 26*11076SCathy.Zhou@Sun.COM #ifndef _SYS_SYSEVENT_VRRP_H 27*11076SCathy.Zhou@Sun.COM #define _SYS_SYSEVENT_VRRP_H 28*11076SCathy.Zhou@Sun.COM 29*11076SCathy.Zhou@Sun.COM /* 30*11076SCathy.Zhou@Sun.COM * VRRP sysevent definitions. Note that all of these definitions are 31*11076SCathy.Zhou@Sun.COM * Sun-private and are subject to change at any time. 32*11076SCathy.Zhou@Sun.COM */ 33*11076SCathy.Zhou@Sun.COM 34*11076SCathy.Zhou@Sun.COM #ifdef __cplusplus 35*11076SCathy.Zhou@Sun.COM extern "C" { 36*11076SCathy.Zhou@Sun.COM #endif 37*11076SCathy.Zhou@Sun.COM 38*11076SCathy.Zhou@Sun.COM 39*11076SCathy.Zhou@Sun.COM /* 40*11076SCathy.Zhou@Sun.COM * Event type EC_VRRP/ESC_VRRP_GROUP_STATE event schema 41*11076SCathy.Zhou@Sun.COM * 42*11076SCathy.Zhou@Sun.COM * Event Class - EC_VRRP 43*11076SCathy.Zhou@Sun.COM * Event Sub-Class - ESC_VRRP_STATE_CHANGE 44*11076SCathy.Zhou@Sun.COM * Event Vendor - SUNW_VENDOR (defined in sys/sysevent.h) 45*11076SCathy.Zhou@Sun.COM * Event Publisher - VRRP_EVENT_PUBLISHER (defined in this file) 46*11076SCathy.Zhou@Sun.COM * 47*11076SCathy.Zhou@Sun.COM * Attribute Name - VRRP_EVENT_VERSION 48*11076SCathy.Zhou@Sun.COM * Attribute Type - SE_DATA_TYPE_UINT8 49*11076SCathy.Zhou@Sun.COM * Attribute Value - <version> 50*11076SCathy.Zhou@Sun.COM * 51*11076SCathy.Zhou@Sun.COM * Attribute Name - VRRP_EVENT_ROUTER_NAME 52*11076SCathy.Zhou@Sun.COM * Attribute Type - SE_DATA_TYPE_STRING 53*11076SCathy.Zhou@Sun.COM * Attribute Value - <router-name> 54*11076SCathy.Zhou@Sun.COM * 55*11076SCathy.Zhou@Sun.COM * Attribute Name - VRRP_EVENT_STATE 56*11076SCathy.Zhou@Sun.COM * Attribute Type - SE_DATA_TYPE_UINT8 57*11076SCathy.Zhou@Sun.COM * Attribute Value - <state> 58*11076SCathy.Zhou@Sun.COM * 59*11076SCathy.Zhou@Sun.COM * Attribute Name - VRRP_EVENT_PREV_STATE 60*11076SCathy.Zhou@Sun.COM * Attribute Type - SE_DATA_TYPE_UINT8 61*11076SCathy.Zhou@Sun.COM * Attribute Value - <previous-state> 62*11076SCathy.Zhou@Sun.COM */ 63*11076SCathy.Zhou@Sun.COM 64*11076SCathy.Zhou@Sun.COM #define VRRP_EVENT_PUBLISHER "vrrpd" 65*11076SCathy.Zhou@Sun.COM 66*11076SCathy.Zhou@Sun.COM #define VRRP_EVENT_VERSION "vrrp_event_version" 67*11076SCathy.Zhou@Sun.COM #define VRRP_EVENT_ROUTER_NAME "vrrp_router_name" 68*11076SCathy.Zhou@Sun.COM #define VRRP_EVENT_STATE "vrrp_state" 69*11076SCathy.Zhou@Sun.COM #define VRRP_EVENT_PREV_STATE "vrrp_prev_state" 70*11076SCathy.Zhou@Sun.COM 71*11076SCathy.Zhou@Sun.COM #define VRRP_EVENT_CUR_VERSION 1 72*11076SCathy.Zhou@Sun.COM 73*11076SCathy.Zhou@Sun.COM 74*11076SCathy.Zhou@Sun.COM #ifdef __cplusplus 75*11076SCathy.Zhou@Sun.COM } 76*11076SCathy.Zhou@Sun.COM #endif 77*11076SCathy.Zhou@Sun.COM 78*11076SCathy.Zhou@Sun.COM #endif /* _SYS_SYSEVENT_VRRP_H */ 79