madman_api.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef _MADMAN_API_H_
#define _MADMAN_API_H_
#include "snmp_api.h"
/***** GLOBAL CONSTANTS *****/
/* predefined request values */
#define SYSUPTIME_REQ 1
#define APPL_ENTRY_REQ 11
#define ASSOC_ENTRY_REQ 12
#define MTA_ENTRY_REQ 21
#define MTA_GROUP_ENTRY_REQ 22
#define MTA_GROUP_ASSOCIATION_ENTRY_REQ 23
#define DSA_OPS_ENTRY_REQ 31
#define DSA_ENTRIES_ENTRY_REQ 32
#define DSA_INT_ENTRY_REQ 33
#define X4MS_MTA_ENTRY_REQ 101
#define X4MS_USER_ENTRY_PART1_REQ 102
#define X4MS_USER_ENTRY_PART2_REQ 103
#define X4MS_USER_ASSOCIATION_ENTRY_REQ 104
#define X4GRP_ENTRY_REQ 201
#define X4GRP_MAPPING_ENTRY_REQ 202
#define X5DSA_REFERENCE_ENTRY_REQ 401
/* applStatus values */
#define APPL_UP 1
#define APPL_DOWN 2
#define APPL_HALTED 3
#define APPL_CONGESTED 4
#define APPL_RESTARTING 5
/* assocApplicationType values */
#define ASSOC_UA_INITIATOR 1
#define ASSOC_UA_RESPONDER 2
#define ASSOC_PEER_INITIATOR 3
#define ASSOC_PEER_RESPONDER 4
/* x5dsaReferenceType values */
#define REFERENCE_SUPERIOR 1
#define REFERENCE_CROSS 2
#define REFERENCE_SUBORDINATE 3
#define REFERENCE_NON_SPECIFIC_SUBORDINATE 4
/***** GLOBAL TYPES *****/
/**********/
/* MIB II */
/**********/
/************/
/* RFC 1565 */
/************/
typedef struct _ApplEntry {
char *applName;
char *applDirectoryName;
char *applVersion;
} ApplEntry;
typedef struct _AssocEntry {
char *assocRemoteApplication;
} AssocEntry;
/************/
/* RFC 1566 */
/************/
typedef struct _MtaEntry {
} MtaEntry;
typedef struct _MtaGroupEntry {
char *mtaGroupName;
typedef struct _MtaGroupAssociationEntry {
/************/
/* RFC 1567 */
/************/
typedef struct _DsaOpsEntry {
} DsaOpsEntry;
typedef struct _DsaEntriesEntry {
typedef struct _DsaIntEntry {
char *dsaName;
} DsaIntEntry;
/************/
/* X4MS MIB */
/************/
typedef struct _X4msMtaEntry {
char *x4msMtaName;
} X4msMtaEntry;
typedef struct _X4msUserTablePart1 {
char *x4msUserName;
typedef struct _X4msUserEntryPart2 {
char *x4msUserORName;
typedef struct _X4msUserAssociationEntry {
/*************/
/* X4GRP MIB */
/*************/
typedef struct _X4grpEntry {
char *x4grpName;
} X4grpEntry;
typedef struct _X4grpMappingEntry {
/*************/
/* X5DSA MIB */
/*************/
typedef struct _X5dsaReferenceEntry {
char *x5dsaReferenceNamingContext;
char *x5dsaReferenceSubordinate;
char *x5dsaReferenceName;
/***** GLOBAL VARIABLES *****/
/* SMTP */
extern char smtp_string[];
/* P1 */
extern Oid id_ac_mts_transfer_name;
extern char id_ac_mts_transfer_string[];
/* P3 */
extern Oid id_ac_mts_access_name;
extern Oid id_ac_mts_forced_access_name;
extern Oid id_ac_mts_reliable_access_name;
/* P7 */
extern Oid id_ac_ms_access_name;
extern Oid id_ac_ms_reliable_access_name;
/***** GLOBAL FUNCTIONS *****/
/**********/
/* MIB II */
/**********/
/* SysUpTime */
/************/
/* RFC 1565 */
/************/
/* ApplEntry */
/* AssocEntry */
/* miscellaneous */
/************/
/* RFC 1566 */
/************/
/* MtaEntry */
/* MtaGroupEntry */
/* MtaGroupAssociationEntry */
/************/
/* RFC 1567 */
/************/
/* DsaOpsEntry */
/* DsaEntriesEntry */
/* DsaIntEntry */
/************/
/* X4MS MIB */
/************/
/* X4msMtaEntry */
/* X4msUserEntryPart1 */
/* X4msUserEntryPart2 */
/* X4msUserAssociationEntry */
/*************/
/* X4GRP MIB */
/*************/
/* X4grpEntry */
/* X4grpMappingEntry */
/*************/
/* X5DSA MIB */
/*************/
/* X5dsaReferenceEntry */
/* miscellaneous */
/*****************/
/* miscellaneous */
/*****************/
char *predefined_request_string(int predefined_id);
#endif