1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* 3 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4 * Use is subject to license terms. 5 */ 6 7 8 #ifndef _IPROP_HDR_H 9 #define _IPROP_HDR_H 10 11 /* #pragma ident "@(#)iprop_hdr.h 1.1 04/02/20 SMI" */ 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /* 18 * This file has some defines common to the iprop client and 19 * server routines. 20 */ 21 22 /* 23 * Maximum size for each ulog entry is 2KB and maximum 24 * possible attribute-value pairs for each ulog entry is 20 25 */ 26 #define MAXENTRY_SIZE 2048 27 #define MAXATTRS_SIZE 20 28 29 #define KIPROP_SVC_NAME "kiprop" 30 #define MAX_BACKOFF 300 /* Backoff for a maximum for 5 mts */ 31 32 enum iprop_role { 33 IPROP_NULL = 0, 34 IPROP_PRIMARY = 1, 35 IPROP_REPLICA = 2 36 }; 37 typedef enum iprop_role iprop_role; 38 39 /* 40 * Full resync dump versioning 41 */ 42 #define IPROPX_VERSION_0 0 43 #define IPROPX_VERSION_1 1 44 #define IPROPX_VERSION IPROPX_VERSION_1 45 46 #ifdef __cplusplus 47 } 48 #endif 49 50 #endif /* !_IPROP_HDR_H */ 51