1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright (c) 1998 by Sun Microsystems, Inc. 24*0Sstevel@tonic-gate * All rights reserved. 25*0Sstevel@tonic-gate */ 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 28*0Sstevel@tonic-gate 29*0Sstevel@tonic-gate #ifndef _MADMAN_API_H_ 30*0Sstevel@tonic-gate #define _MADMAN_API_H_ 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate #include <sys/types.h> 33*0Sstevel@tonic-gate #include "snmp_api.h" 34*0Sstevel@tonic-gate 35*0Sstevel@tonic-gate 36*0Sstevel@tonic-gate /***** GLOBAL CONSTANTS *****/ 37*0Sstevel@tonic-gate 38*0Sstevel@tonic-gate 39*0Sstevel@tonic-gate /* predefined request values */ 40*0Sstevel@tonic-gate 41*0Sstevel@tonic-gate #define SYSUPTIME_REQ 1 42*0Sstevel@tonic-gate 43*0Sstevel@tonic-gate #define APPL_ENTRY_REQ 11 44*0Sstevel@tonic-gate #define ASSOC_ENTRY_REQ 12 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate #define MTA_ENTRY_REQ 21 47*0Sstevel@tonic-gate #define MTA_GROUP_ENTRY_REQ 22 48*0Sstevel@tonic-gate #define MTA_GROUP_ASSOCIATION_ENTRY_REQ 23 49*0Sstevel@tonic-gate 50*0Sstevel@tonic-gate #define DSA_OPS_ENTRY_REQ 31 51*0Sstevel@tonic-gate #define DSA_ENTRIES_ENTRY_REQ 32 52*0Sstevel@tonic-gate #define DSA_INT_ENTRY_REQ 33 53*0Sstevel@tonic-gate 54*0Sstevel@tonic-gate #define X4MS_MTA_ENTRY_REQ 101 55*0Sstevel@tonic-gate #define X4MS_USER_ENTRY_PART1_REQ 102 56*0Sstevel@tonic-gate #define X4MS_USER_ENTRY_PART2_REQ 103 57*0Sstevel@tonic-gate #define X4MS_USER_ASSOCIATION_ENTRY_REQ 104 58*0Sstevel@tonic-gate 59*0Sstevel@tonic-gate #define X4GRP_ENTRY_REQ 201 60*0Sstevel@tonic-gate #define X4GRP_MAPPING_ENTRY_REQ 202 61*0Sstevel@tonic-gate 62*0Sstevel@tonic-gate #define X5DSA_REFERENCE_ENTRY_REQ 401 63*0Sstevel@tonic-gate 64*0Sstevel@tonic-gate 65*0Sstevel@tonic-gate /* applStatus values */ 66*0Sstevel@tonic-gate 67*0Sstevel@tonic-gate #define APPL_UP 1 68*0Sstevel@tonic-gate #define APPL_DOWN 2 69*0Sstevel@tonic-gate #define APPL_HALTED 3 70*0Sstevel@tonic-gate #define APPL_CONGESTED 4 71*0Sstevel@tonic-gate #define APPL_RESTARTING 5 72*0Sstevel@tonic-gate 73*0Sstevel@tonic-gate 74*0Sstevel@tonic-gate /* assocApplicationType values */ 75*0Sstevel@tonic-gate 76*0Sstevel@tonic-gate #define ASSOC_UA_INITIATOR 1 77*0Sstevel@tonic-gate #define ASSOC_UA_RESPONDER 2 78*0Sstevel@tonic-gate #define ASSOC_PEER_INITIATOR 3 79*0Sstevel@tonic-gate #define ASSOC_PEER_RESPONDER 4 80*0Sstevel@tonic-gate 81*0Sstevel@tonic-gate 82*0Sstevel@tonic-gate /* x5dsaReferenceType values */ 83*0Sstevel@tonic-gate 84*0Sstevel@tonic-gate #define REFERENCE_SUPERIOR 1 85*0Sstevel@tonic-gate #define REFERENCE_CROSS 2 86*0Sstevel@tonic-gate #define REFERENCE_SUBORDINATE 3 87*0Sstevel@tonic-gate #define REFERENCE_NON_SPECIFIC_SUBORDINATE 4 88*0Sstevel@tonic-gate 89*0Sstevel@tonic-gate 90*0Sstevel@tonic-gate /***** GLOBAL TYPES *****/ 91*0Sstevel@tonic-gate 92*0Sstevel@tonic-gate /**********/ 93*0Sstevel@tonic-gate /* MIB II */ 94*0Sstevel@tonic-gate /**********/ 95*0Sstevel@tonic-gate 96*0Sstevel@tonic-gate typedef int32_t SysUpTime; 97*0Sstevel@tonic-gate 98*0Sstevel@tonic-gate 99*0Sstevel@tonic-gate /************/ 100*0Sstevel@tonic-gate /* RFC 1565 */ 101*0Sstevel@tonic-gate /************/ 102*0Sstevel@tonic-gate 103*0Sstevel@tonic-gate typedef struct _ApplEntry { 104*0Sstevel@tonic-gate int32_t applIndex; 105*0Sstevel@tonic-gate char *applName; 106*0Sstevel@tonic-gate char *applDirectoryName; 107*0Sstevel@tonic-gate char *applVersion; 108*0Sstevel@tonic-gate int32_t applUptime; 109*0Sstevel@tonic-gate int32_t applOperStatus; 110*0Sstevel@tonic-gate int32_t applLastChange; 111*0Sstevel@tonic-gate int32_t applInboundAssociations; 112*0Sstevel@tonic-gate int32_t applOutboundAssociations; 113*0Sstevel@tonic-gate int32_t applAccumulatedInboundAssociations; 114*0Sstevel@tonic-gate int32_t applAccumulatedOutboundAssociations; 115*0Sstevel@tonic-gate int32_t applLastInboundActivity; 116*0Sstevel@tonic-gate int32_t applLastOutboundActivity; 117*0Sstevel@tonic-gate int32_t applRejectedInboundAssociations; 118*0Sstevel@tonic-gate int32_t applFailedOutboundAssociations; 119*0Sstevel@tonic-gate } ApplEntry; 120*0Sstevel@tonic-gate 121*0Sstevel@tonic-gate typedef struct _AssocEntry { 122*0Sstevel@tonic-gate int32_t applIndex; 123*0Sstevel@tonic-gate int32_t assocIndex; 124*0Sstevel@tonic-gate char *assocRemoteApplication; 125*0Sstevel@tonic-gate Oid *assocApplicationProtocol; 126*0Sstevel@tonic-gate int32_t assocApplicationType; 127*0Sstevel@tonic-gate int32_t assocDuration; 128*0Sstevel@tonic-gate } AssocEntry; 129*0Sstevel@tonic-gate 130*0Sstevel@tonic-gate 131*0Sstevel@tonic-gate /************/ 132*0Sstevel@tonic-gate /* RFC 1566 */ 133*0Sstevel@tonic-gate /************/ 134*0Sstevel@tonic-gate 135*0Sstevel@tonic-gate typedef struct _MtaEntry { 136*0Sstevel@tonic-gate int32_t applIndex; 137*0Sstevel@tonic-gate int32_t mtaReceivedMessages; 138*0Sstevel@tonic-gate int32_t mtaStoredMessages; 139*0Sstevel@tonic-gate int32_t mtaTransmittedMessages; 140*0Sstevel@tonic-gate int32_t mtaReceivedVolume; 141*0Sstevel@tonic-gate int32_t mtaStoredVolume; 142*0Sstevel@tonic-gate int32_t mtaTransmittedVolume; 143*0Sstevel@tonic-gate int32_t mtaReceivedRecipients; 144*0Sstevel@tonic-gate int32_t mtaStoredRecipients; 145*0Sstevel@tonic-gate int32_t mtaTransmittedRecipients; 146*0Sstevel@tonic-gate } MtaEntry; 147*0Sstevel@tonic-gate 148*0Sstevel@tonic-gate typedef struct _MtaGroupEntry { 149*0Sstevel@tonic-gate int32_t applIndex; 150*0Sstevel@tonic-gate int32_t mtaGroupIndex; 151*0Sstevel@tonic-gate int32_t mtaGroupReceivedMessages; 152*0Sstevel@tonic-gate int32_t mtaGroupRejectedMessages; 153*0Sstevel@tonic-gate int32_t mtaGroupStoredMessages; 154*0Sstevel@tonic-gate int32_t mtaGroupTransmittedMessages; 155*0Sstevel@tonic-gate int32_t mtaGroupReceivedVolume; 156*0Sstevel@tonic-gate int32_t mtaGroupStoredVolume; 157*0Sstevel@tonic-gate int32_t mtaGroupTransmittedVolume; 158*0Sstevel@tonic-gate int32_t mtaGroupReceivedRecipients; 159*0Sstevel@tonic-gate int32_t mtaGroupStoredRecipients; 160*0Sstevel@tonic-gate int32_t mtaGroupTransmittedRecipients; 161*0Sstevel@tonic-gate int32_t mtaGroupOldestMessageStored; 162*0Sstevel@tonic-gate int32_t mtaGroupInboundAssociations; 163*0Sstevel@tonic-gate int32_t mtaGroupOutboundAssociations; 164*0Sstevel@tonic-gate int32_t mtaGroupAccumulatedInboundAssociations; 165*0Sstevel@tonic-gate int32_t mtaGroupAccumulatedOutboundAssociations; 166*0Sstevel@tonic-gate int32_t mtaGroupLastInboundActivity; 167*0Sstevel@tonic-gate int32_t mtaGroupLastOutboundActivity; 168*0Sstevel@tonic-gate int32_t mtaGroupRejectedInboundAssociations; 169*0Sstevel@tonic-gate int32_t mtaGroupFailedOutboundAssociations; 170*0Sstevel@tonic-gate char *mtaGroupInboundRejectionReason; 171*0Sstevel@tonic-gate char *mtaGroupOutboundConnectFailureReason; 172*0Sstevel@tonic-gate int32_t mtaGroupScheduledRetry; 173*0Sstevel@tonic-gate Oid *mtaGroupMailProtocol; 174*0Sstevel@tonic-gate char *mtaGroupName; 175*0Sstevel@tonic-gate } MtaGroupEntry; 176*0Sstevel@tonic-gate 177*0Sstevel@tonic-gate typedef struct _MtaGroupAssociationEntry { 178*0Sstevel@tonic-gate int32_t applIndex; 179*0Sstevel@tonic-gate int32_t mtaGroupIndex; 180*0Sstevel@tonic-gate int32_t mtaGroupAssociationIndex; 181*0Sstevel@tonic-gate } MtaGroupAssociationEntry; 182*0Sstevel@tonic-gate 183*0Sstevel@tonic-gate 184*0Sstevel@tonic-gate /************/ 185*0Sstevel@tonic-gate /* RFC 1567 */ 186*0Sstevel@tonic-gate /************/ 187*0Sstevel@tonic-gate 188*0Sstevel@tonic-gate typedef struct _DsaOpsEntry { 189*0Sstevel@tonic-gate int32_t applIndex; 190*0Sstevel@tonic-gate int32_t dsaAnonymousBinds; 191*0Sstevel@tonic-gate int32_t dsaUnauthBinds; 192*0Sstevel@tonic-gate int32_t dsaSimpleAuthBinds; 193*0Sstevel@tonic-gate int32_t dsaStrongAuthBinds; 194*0Sstevel@tonic-gate int32_t dsaBindSecurityErrors; 195*0Sstevel@tonic-gate int32_t dsaInOps; 196*0Sstevel@tonic-gate int32_t dsaReadOps; 197*0Sstevel@tonic-gate int32_t dsaCompareOps; 198*0Sstevel@tonic-gate int32_t dsaAddEntryOps; 199*0Sstevel@tonic-gate int32_t dsaRemoveEntryOps; 200*0Sstevel@tonic-gate int32_t dsaModifyEntryOps; 201*0Sstevel@tonic-gate int32_t dsaModifyRDNOps; 202*0Sstevel@tonic-gate int32_t dsaListOps; 203*0Sstevel@tonic-gate int32_t dsaSearchOps; 204*0Sstevel@tonic-gate int32_t dsaOneLevelSearchOps; 205*0Sstevel@tonic-gate int32_t dsaWholeTreeSearchOps; 206*0Sstevel@tonic-gate int32_t dsaReferrals; 207*0Sstevel@tonic-gate int32_t dsaChainings; 208*0Sstevel@tonic-gate int32_t dsaSecurityErrors; 209*0Sstevel@tonic-gate int32_t dsaErrors; 210*0Sstevel@tonic-gate } DsaOpsEntry; 211*0Sstevel@tonic-gate 212*0Sstevel@tonic-gate typedef struct _DsaEntriesEntry { 213*0Sstevel@tonic-gate int32_t applIndex; 214*0Sstevel@tonic-gate int32_t dsaMasterEntries; 215*0Sstevel@tonic-gate int32_t dsaCopyEntries; 216*0Sstevel@tonic-gate int32_t dsaCacheEntries; 217*0Sstevel@tonic-gate int32_t dsaCacheHits; 218*0Sstevel@tonic-gate int32_t dsaSlaveHits; 219*0Sstevel@tonic-gate } DsaEntriesEntry; 220*0Sstevel@tonic-gate 221*0Sstevel@tonic-gate typedef struct _DsaIntEntry { 222*0Sstevel@tonic-gate int32_t applIndex; 223*0Sstevel@tonic-gate int32_t dsaIntIndex; 224*0Sstevel@tonic-gate char *dsaName; 225*0Sstevel@tonic-gate int32_t dsaTimeOfCreation; 226*0Sstevel@tonic-gate int32_t dsaTimeOfLastAttempt; 227*0Sstevel@tonic-gate int32_t dsaTimeOfLastSuccess; 228*0Sstevel@tonic-gate int32_t dsaFailuresSinceLastSuccess; 229*0Sstevel@tonic-gate int32_t dsaFailures; 230*0Sstevel@tonic-gate int32_t dsaSuccesses; 231*0Sstevel@tonic-gate } DsaIntEntry; 232*0Sstevel@tonic-gate 233*0Sstevel@tonic-gate 234*0Sstevel@tonic-gate /************/ 235*0Sstevel@tonic-gate /* X4MS MIB */ 236*0Sstevel@tonic-gate /************/ 237*0Sstevel@tonic-gate 238*0Sstevel@tonic-gate typedef struct _X4msMtaEntry { 239*0Sstevel@tonic-gate int32_t x4msMtaIndex; 240*0Sstevel@tonic-gate char *x4msMtaName; 241*0Sstevel@tonic-gate } X4msMtaEntry; 242*0Sstevel@tonic-gate 243*0Sstevel@tonic-gate 244*0Sstevel@tonic-gate typedef struct _X4msUserTablePart1 { 245*0Sstevel@tonic-gate int32_t x4msUserIndex; 246*0Sstevel@tonic-gate int32_t x4msUserTotalMessages; 247*0Sstevel@tonic-gate int32_t x4msUserTotalVolume; 248*0Sstevel@tonic-gate int32_t x4msUserP3Associations; 249*0Sstevel@tonic-gate int32_t x4msUserP7Associations; 250*0Sstevel@tonic-gate int32_t x4msUserLastP7Association; 251*0Sstevel@tonic-gate int32_t x4msUserAuthentificationFailures; 252*0Sstevel@tonic-gate char *x4msUserAuthentificationFailureReason; 253*0Sstevel@tonic-gate char *x4msUserName; 254*0Sstevel@tonic-gate } X4msUserEntryPart1; 255*0Sstevel@tonic-gate 256*0Sstevel@tonic-gate typedef struct _X4msUserEntryPart2 { 257*0Sstevel@tonic-gate int32_t x4msUserIndex; 258*0Sstevel@tonic-gate int32_t x4msUserNewMessages; 259*0Sstevel@tonic-gate int32_t x4msUserNewVolume; 260*0Sstevel@tonic-gate int32_t x4msUserListedMessages; 261*0Sstevel@tonic-gate int32_t x4msUserListedVolume; 262*0Sstevel@tonic-gate int32_t x4msUserProcessedMessages; 263*0Sstevel@tonic-gate int32_t x4msUserProcessedVolume; 264*0Sstevel@tonic-gate int32_t x4msUserMessagesOlderThanWeek; 265*0Sstevel@tonic-gate int32_t x4msUserVolumeOlderThanWeek; 266*0Sstevel@tonic-gate int32_t x4msUserMessagesOlderThanMonth; 267*0Sstevel@tonic-gate int32_t x4msUserVolumeOlderThanMonth; 268*0Sstevel@tonic-gate int32_t x4msUserMessagesOlderThanYear; 269*0Sstevel@tonic-gate int32_t x4msUserVolumeOlderThanYear; 270*0Sstevel@tonic-gate int32_t x4msUserP3InboundAssociations; 271*0Sstevel@tonic-gate int32_t x4msUserP7InboundAssociations; 272*0Sstevel@tonic-gate int32_t x4msUserP3OutboundAssociations; 273*0Sstevel@tonic-gate int32_t x4msUserAccumulatedP3InboundAssociations; 274*0Sstevel@tonic-gate int32_t x4msUserAccumulatedP7InboundAssociations; 275*0Sstevel@tonic-gate int32_t x4msUserAccumulatedP3OutboundAssociations; 276*0Sstevel@tonic-gate int32_t x4msUserLastP3InboundActivity; 277*0Sstevel@tonic-gate int32_t x4msUserLastP7InboundActivity; 278*0Sstevel@tonic-gate int32_t x4msUserLastP3OutboundActivity; 279*0Sstevel@tonic-gate int32_t x4msUserRejectedP3InboundAssociations; 280*0Sstevel@tonic-gate int32_t x4msUserRejectedP7InboundAssociations; 281*0Sstevel@tonic-gate int32_t x4msUserFailedP3OutboundAssociations; 282*0Sstevel@tonic-gate char *x4msUserP3InboundRejectionReason; 283*0Sstevel@tonic-gate char *x4msUserP7InboundRejectionReason; 284*0Sstevel@tonic-gate char *x4msUserP3OutboundConnectFailureReason; 285*0Sstevel@tonic-gate int32_t x4msUserMtaIndex; 286*0Sstevel@tonic-gate char *x4msUserORName; 287*0Sstevel@tonic-gate } X4msUserEntryPart2; 288*0Sstevel@tonic-gate 289*0Sstevel@tonic-gate typedef struct _X4msUserAssociationEntry { 290*0Sstevel@tonic-gate int32_t x4msUserIndex; 291*0Sstevel@tonic-gate int32_t x4msUserAssociationIndex; 292*0Sstevel@tonic-gate } X4msUserAssociationEntry; 293*0Sstevel@tonic-gate 294*0Sstevel@tonic-gate 295*0Sstevel@tonic-gate /*************/ 296*0Sstevel@tonic-gate /* X4GRP MIB */ 297*0Sstevel@tonic-gate /*************/ 298*0Sstevel@tonic-gate 299*0Sstevel@tonic-gate typedef struct _X4grpEntry { 300*0Sstevel@tonic-gate int32_t x4grpIndex; 301*0Sstevel@tonic-gate char *x4grpName; 302*0Sstevel@tonic-gate } X4grpEntry; 303*0Sstevel@tonic-gate 304*0Sstevel@tonic-gate 305*0Sstevel@tonic-gate typedef struct _X4grpMappingEntry { 306*0Sstevel@tonic-gate int32_t x4grpIndex; 307*0Sstevel@tonic-gate int32_t x4grpMappingMSIndex; 308*0Sstevel@tonic-gate int32_t x4grpMappingMTAIndex; 309*0Sstevel@tonic-gate } X4grpMappingEntry; 310*0Sstevel@tonic-gate 311*0Sstevel@tonic-gate 312*0Sstevel@tonic-gate /*************/ 313*0Sstevel@tonic-gate /* X5DSA MIB */ 314*0Sstevel@tonic-gate /*************/ 315*0Sstevel@tonic-gate 316*0Sstevel@tonic-gate typedef struct _X5dsaReferenceEntry { 317*0Sstevel@tonic-gate int32_t x5dsaReferenceIndex; 318*0Sstevel@tonic-gate int32_t x5dsaReferenceType; 319*0Sstevel@tonic-gate char *x5dsaReferenceNamingContext; 320*0Sstevel@tonic-gate char *x5dsaReferenceSubordinate; 321*0Sstevel@tonic-gate char *x5dsaReferenceName; 322*0Sstevel@tonic-gate } X5dsaReferenceEntry; 323*0Sstevel@tonic-gate 324*0Sstevel@tonic-gate 325*0Sstevel@tonic-gate /***** GLOBAL VARIABLES *****/ 326*0Sstevel@tonic-gate 327*0Sstevel@tonic-gate /* SMTP */ 328*0Sstevel@tonic-gate extern Oid smtp_name; 329*0Sstevel@tonic-gate extern char smtp_string[]; 330*0Sstevel@tonic-gate 331*0Sstevel@tonic-gate /* P1 */ 332*0Sstevel@tonic-gate extern Oid id_ac_mts_transfer_name; 333*0Sstevel@tonic-gate extern char id_ac_mts_transfer_string[]; 334*0Sstevel@tonic-gate 335*0Sstevel@tonic-gate /* P3 */ 336*0Sstevel@tonic-gate extern Oid id_ac_mts_access_name; 337*0Sstevel@tonic-gate extern Oid id_ac_mts_forced_access_name; 338*0Sstevel@tonic-gate extern Oid id_ac_mts_reliable_access_name; 339*0Sstevel@tonic-gate extern Oid id_ac_mts_forced_reliable_access_name; 340*0Sstevel@tonic-gate 341*0Sstevel@tonic-gate /* P7 */ 342*0Sstevel@tonic-gate extern Oid id_ac_ms_access_name; 343*0Sstevel@tonic-gate extern Oid id_ac_ms_reliable_access_name; 344*0Sstevel@tonic-gate 345*0Sstevel@tonic-gate 346*0Sstevel@tonic-gate /***** GLOBAL FUNCTIONS *****/ 347*0Sstevel@tonic-gate 348*0Sstevel@tonic-gate /**********/ 349*0Sstevel@tonic-gate /* MIB II */ 350*0Sstevel@tonic-gate /**********/ 351*0Sstevel@tonic-gate 352*0Sstevel@tonic-gate /* SysUpTime */ 353*0Sstevel@tonic-gate 354*0Sstevel@tonic-gate int sysUpTime_send_request(SNMP_session *session, char *error_label); 355*0Sstevel@tonic-gate SysUpTime *sysUpTime_process_response(SNMP_session *session, 356*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 357*0Sstevel@tonic-gate void sysUpTime_free(SysUpTime *sysUpTime); 358*0Sstevel@tonic-gate void sysUpTime_print(SysUpTime *sysUpTime); 359*0Sstevel@tonic-gate 360*0Sstevel@tonic-gate 361*0Sstevel@tonic-gate /************/ 362*0Sstevel@tonic-gate /* RFC 1565 */ 363*0Sstevel@tonic-gate /************/ 364*0Sstevel@tonic-gate 365*0Sstevel@tonic-gate /* ApplEntry */ 366*0Sstevel@tonic-gate 367*0Sstevel@tonic-gate int applEntry_send_request(SNMP_session *session, 368*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, char *error_label); 369*0Sstevel@tonic-gate ApplEntry *applEntry_process_response(SNMP_session *session, 370*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 371*0Sstevel@tonic-gate void applEntry_free(ApplEntry *applEntry); 372*0Sstevel@tonic-gate void applEntry_print(ApplEntry *applEntry); 373*0Sstevel@tonic-gate 374*0Sstevel@tonic-gate /* AssocEntry */ 375*0Sstevel@tonic-gate 376*0Sstevel@tonic-gate int assocEntry_send_request(SNMP_session *session, 377*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, int32_t assocIndex, char *error_label); 378*0Sstevel@tonic-gate AssocEntry *assocEntry_process_response(SNMP_session *session, 379*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 380*0Sstevel@tonic-gate void assocEntry_free(AssocEntry *assocEntry); 381*0Sstevel@tonic-gate void assocEntry_print(AssocEntry *assocEntry); 382*0Sstevel@tonic-gate 383*0Sstevel@tonic-gate /* miscellaneous */ 384*0Sstevel@tonic-gate 385*0Sstevel@tonic-gate char *applOperStatus_string(int32_t applStatus); 386*0Sstevel@tonic-gate char *assocApplicationType_string(int32_t applStatus); 387*0Sstevel@tonic-gate 388*0Sstevel@tonic-gate 389*0Sstevel@tonic-gate /************/ 390*0Sstevel@tonic-gate /* RFC 1566 */ 391*0Sstevel@tonic-gate /************/ 392*0Sstevel@tonic-gate 393*0Sstevel@tonic-gate /* MtaEntry */ 394*0Sstevel@tonic-gate 395*0Sstevel@tonic-gate int mtaEntry_send_request(SNMP_session *session, 396*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, char *error_label); 397*0Sstevel@tonic-gate MtaEntry *mtaEntry_process_response(SNMP_session *session, 398*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 399*0Sstevel@tonic-gate void mtaEntry_free(MtaEntry *mtaEntry); 400*0Sstevel@tonic-gate void mtaEntry_print(MtaEntry *mtaEntry); 401*0Sstevel@tonic-gate 402*0Sstevel@tonic-gate /* MtaGroupEntry */ 403*0Sstevel@tonic-gate 404*0Sstevel@tonic-gate int mtaGroupEntry_send_request(SNMP_session *session, 405*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, int32_t mtaGroupIndex, char *error_label); 406*0Sstevel@tonic-gate MtaGroupEntry *mtaGroupEntry_process_response(SNMP_session *session, 407*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 408*0Sstevel@tonic-gate void mtaGroupEntry_free(MtaGroupEntry *mtaGroupEntry); 409*0Sstevel@tonic-gate void mtaGroupEntry_print(MtaGroupEntry *mtaGroupEntry); 410*0Sstevel@tonic-gate 411*0Sstevel@tonic-gate /* MtaGroupAssociationEntry */ 412*0Sstevel@tonic-gate 413*0Sstevel@tonic-gate int mtaGroupAssociationEntry_send_request(SNMP_session *session, 414*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, int32_t mtaGroupIndex, 415*0Sstevel@tonic-gate int32_t mtaGroupAssociationIndex, char *error_label); 416*0Sstevel@tonic-gate MtaGroupAssociationEntry *mtaGroupAssociationEntry_process_response(SNMP_session *session, 417*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 418*0Sstevel@tonic-gate void mtaGroupAssociationEntry_free(MtaGroupAssociationEntry *mtaGroupAssociationEntry); 419*0Sstevel@tonic-gate void mtaGroupAssociationEntry_print(MtaGroupAssociationEntry *mtaGroupAssociationEntry); 420*0Sstevel@tonic-gate 421*0Sstevel@tonic-gate 422*0Sstevel@tonic-gate /************/ 423*0Sstevel@tonic-gate /* RFC 1567 */ 424*0Sstevel@tonic-gate /************/ 425*0Sstevel@tonic-gate 426*0Sstevel@tonic-gate /* DsaOpsEntry */ 427*0Sstevel@tonic-gate 428*0Sstevel@tonic-gate int dsaOpsEntry_send_request(SNMP_session *session, 429*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, char *error_label); 430*0Sstevel@tonic-gate DsaOpsEntry *dsaOpsEntry_process_response(SNMP_session *session, 431*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 432*0Sstevel@tonic-gate void dsaOpsEntry_free(DsaOpsEntry *dsaOpsEntry); 433*0Sstevel@tonic-gate void dsaOpsEntry_print(DsaOpsEntry *dsaOpsEntry); 434*0Sstevel@tonic-gate 435*0Sstevel@tonic-gate /* DsaEntriesEntry */ 436*0Sstevel@tonic-gate 437*0Sstevel@tonic-gate int dsaEntriesEntry_send_request(SNMP_session *session, 438*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, char *error_label); 439*0Sstevel@tonic-gate DsaEntriesEntry *dsaEntriesEntry_process_response(SNMP_session *session, 440*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 441*0Sstevel@tonic-gate void dsaEntriesEntry_free(DsaEntriesEntry *dsaEntriesEntry); 442*0Sstevel@tonic-gate void dsaEntriesEntry_print(DsaEntriesEntry *dsaEntriesEntry); 443*0Sstevel@tonic-gate 444*0Sstevel@tonic-gate /* DsaIntEntry */ 445*0Sstevel@tonic-gate 446*0Sstevel@tonic-gate int dsaIntEntry_send_request(SNMP_session *session, 447*0Sstevel@tonic-gate u_char request_type, int32_t applIndex, int32_t dsaIntIndex, char *error_label); 448*0Sstevel@tonic-gate DsaIntEntry *dsaIntEntry_process_response(SNMP_session *session, 449*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 450*0Sstevel@tonic-gate void dsaIntEntry_free(DsaIntEntry *dsaIntEntry); 451*0Sstevel@tonic-gate void dsaIntEntry_print(DsaIntEntry *dsaIntEntry); 452*0Sstevel@tonic-gate 453*0Sstevel@tonic-gate 454*0Sstevel@tonic-gate /************/ 455*0Sstevel@tonic-gate /* X4MS MIB */ 456*0Sstevel@tonic-gate /************/ 457*0Sstevel@tonic-gate 458*0Sstevel@tonic-gate /* X4msMtaEntry */ 459*0Sstevel@tonic-gate 460*0Sstevel@tonic-gate int x4msMtaEntry_send_request(SNMP_session *session, 461*0Sstevel@tonic-gate u_char request_type, int32_t x4msMtaIndex, char *error_label); 462*0Sstevel@tonic-gate X4msMtaEntry *x4msMtaEntry_process_response(SNMP_session *session, 463*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 464*0Sstevel@tonic-gate void x4msMtaEntry_free(X4msMtaEntry *x4msMtaEntry); 465*0Sstevel@tonic-gate void x4msMtaEntry_print(X4msMtaEntry *x4msMtaEntry); 466*0Sstevel@tonic-gate 467*0Sstevel@tonic-gate /* X4msUserEntryPart1 */ 468*0Sstevel@tonic-gate 469*0Sstevel@tonic-gate int x4msUserEntryPart1_send_request(SNMP_session *session, 470*0Sstevel@tonic-gate u_char request_type, int32_t x4msUserIndex, char *error_label); 471*0Sstevel@tonic-gate X4msUserEntryPart1 *x4msUserEntryPart1_process_response(SNMP_session *session, 472*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 473*0Sstevel@tonic-gate void x4msUserEntryPart1_free(X4msUserEntryPart1 *x4msUserEntryPart1); 474*0Sstevel@tonic-gate void x4msUserEntryPart1_print(X4msUserEntryPart1 *x4msUserEntryPart1); 475*0Sstevel@tonic-gate 476*0Sstevel@tonic-gate 477*0Sstevel@tonic-gate /* X4msUserEntryPart2 */ 478*0Sstevel@tonic-gate 479*0Sstevel@tonic-gate int x4msUserEntryPart2_send_request(SNMP_session *session, 480*0Sstevel@tonic-gate u_char request_type, int32_t x4msUserIndex, char *error_label); 481*0Sstevel@tonic-gate X4msUserEntryPart2 *x4msUserEntryPart2_process_response(SNMP_session *session, 482*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 483*0Sstevel@tonic-gate void x4msUserEntryPart2_free(X4msUserEntryPart2 *x4msUserEntryPart2); 484*0Sstevel@tonic-gate void x4msUserEntryPart2_print(X4msUserEntryPart2 *x4msUserEntryPart2); 485*0Sstevel@tonic-gate 486*0Sstevel@tonic-gate 487*0Sstevel@tonic-gate /* X4msUserAssociationEntry */ 488*0Sstevel@tonic-gate 489*0Sstevel@tonic-gate int x4msUserAssociationEntry_send_request(SNMP_session *session, 490*0Sstevel@tonic-gate u_char request_type, int32_t x4msUserIndex, int32_t x4msUserAssociationIndex, char *error_label); 491*0Sstevel@tonic-gate X4msUserAssociationEntry *x4msUserAssociationEntry_process_response(SNMP_session *session, 492*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 493*0Sstevel@tonic-gate void x4msUserAssociationEntry_free(X4msUserAssociationEntry *x4msUserAssociationEntry); 494*0Sstevel@tonic-gate void x4msUserAssociationEntry_print(X4msUserAssociationEntry *x4msUserAssociationEntry); 495*0Sstevel@tonic-gate 496*0Sstevel@tonic-gate 497*0Sstevel@tonic-gate /*************/ 498*0Sstevel@tonic-gate /* X4GRP MIB */ 499*0Sstevel@tonic-gate /*************/ 500*0Sstevel@tonic-gate 501*0Sstevel@tonic-gate /* X4grpEntry */ 502*0Sstevel@tonic-gate 503*0Sstevel@tonic-gate int x4grpEntry_send_request(SNMP_session *session, 504*0Sstevel@tonic-gate u_char request_type, int32_t x4grpIndex, char *error_label); 505*0Sstevel@tonic-gate X4grpEntry *x4grpEntry_process_response(SNMP_session *session, 506*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 507*0Sstevel@tonic-gate void x4grpEntry_free(X4grpEntry *x4grpEntry); 508*0Sstevel@tonic-gate void x4grpEntry_print(X4grpEntry *x4grpEntry); 509*0Sstevel@tonic-gate 510*0Sstevel@tonic-gate /* X4grpMappingEntry */ 511*0Sstevel@tonic-gate 512*0Sstevel@tonic-gate int x4grpMappingEntry_send_request(SNMP_session *session, 513*0Sstevel@tonic-gate u_char request_type, int32_t x4grpIndex, int32_t x4grpMappingMSIndex, 514*0Sstevel@tonic-gate int32_t x4grpMappingMTAIndex, char *error_label); 515*0Sstevel@tonic-gate X4grpMappingEntry *x4grpMappingEntry_process_response(SNMP_session *session, 516*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 517*0Sstevel@tonic-gate void x4grpMappingEntry_free(X4grpMappingEntry *x4grpMappingEntry); 518*0Sstevel@tonic-gate void x4grpMappingEntry_print(X4grpMappingEntry *x4grpMappingEntry); 519*0Sstevel@tonic-gate 520*0Sstevel@tonic-gate 521*0Sstevel@tonic-gate /*************/ 522*0Sstevel@tonic-gate /* X5DSA MIB */ 523*0Sstevel@tonic-gate /*************/ 524*0Sstevel@tonic-gate 525*0Sstevel@tonic-gate /* X5dsaReferenceEntry */ 526*0Sstevel@tonic-gate 527*0Sstevel@tonic-gate int x5dsaReferenceEntry_send_request(SNMP_session *session, 528*0Sstevel@tonic-gate u_char request_type, int32_t x5dsaReferenceIndex, char *error_label); 529*0Sstevel@tonic-gate X5dsaReferenceEntry *x5dsaReferenceEntry_process_response(SNMP_session *session, 530*0Sstevel@tonic-gate SNMP_pdu *response, char *error_label); 531*0Sstevel@tonic-gate void x5dsaReferenceEntry_free(X5dsaReferenceEntry *x5dsaReferenceEntry); 532*0Sstevel@tonic-gate void x5dsaReferenceEntry_print(X5dsaReferenceEntry *x5dsaReferenceEntry); 533*0Sstevel@tonic-gate 534*0Sstevel@tonic-gate /* miscellaneous */ 535*0Sstevel@tonic-gate 536*0Sstevel@tonic-gate char *x5dsaReferenceType_string(int32_t x5dsaReferenceType); 537*0Sstevel@tonic-gate 538*0Sstevel@tonic-gate 539*0Sstevel@tonic-gate /*****************/ 540*0Sstevel@tonic-gate /* miscellaneous */ 541*0Sstevel@tonic-gate /*****************/ 542*0Sstevel@tonic-gate 543*0Sstevel@tonic-gate char *predefined_request_string(int predefined_id); 544*0Sstevel@tonic-gate 545*0Sstevel@tonic-gate 546*0Sstevel@tonic-gate #endif 547*0Sstevel@tonic-gate 548