1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate */ 5*7c478bd9Sstevel@tonic-gate 6*7c478bd9Sstevel@tonic-gate 7*7c478bd9Sstevel@tonic-gate #ifndef _IPROP_HDR_H 8*7c478bd9Sstevel@tonic-gate #define _IPROP_HDR_H 9*7c478bd9Sstevel@tonic-gate 10*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 11*7c478bd9Sstevel@tonic-gate 12*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 13*7c478bd9Sstevel@tonic-gate extern "C" { 14*7c478bd9Sstevel@tonic-gate #endif 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gate /* 17*7c478bd9Sstevel@tonic-gate * This file has some defines common to the iprop client and 18*7c478bd9Sstevel@tonic-gate * server routines. 19*7c478bd9Sstevel@tonic-gate */ 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gate /* 22*7c478bd9Sstevel@tonic-gate * Maximum size for each ulog entry is 2KB and maximum 23*7c478bd9Sstevel@tonic-gate * possible attribute-value pairs for each ulog entry is 20 24*7c478bd9Sstevel@tonic-gate */ 25*7c478bd9Sstevel@tonic-gate #define MAXENTRY_SIZE 2048 26*7c478bd9Sstevel@tonic-gate #define MAXATTRS_SIZE 20 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gate #define KIPROP_SVC_NAME "kiprop" 29*7c478bd9Sstevel@tonic-gate #define MAX_BACKOFF 300 /* Backoff for a maximum for 5 mts */ 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gate enum iprop_role { 32*7c478bd9Sstevel@tonic-gate IPROP_NULL = 0, 33*7c478bd9Sstevel@tonic-gate IPROP_MASTER = 1, 34*7c478bd9Sstevel@tonic-gate IPROP_SLAVE = 2 35*7c478bd9Sstevel@tonic-gate }; 36*7c478bd9Sstevel@tonic-gate typedef enum iprop_role iprop_role; 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 39*7c478bd9Sstevel@tonic-gate } 40*7c478bd9Sstevel@tonic-gate #endif 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate #endif /* !_IPROP_HDR_H */ 43