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