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