/* * 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 * or http://www.opensolaris.org/os/licensing. * 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 2001 Sun Microsystems, Inc. All Rights Reserved. * Use is subject to license terms. */ #ifndef _SNMP_H_ #define _SNMP_H_ #pragma ident "%Z%%M% %I% %E% SMI" #include "asn1.h" /***** GLOBAL CONSTANTS *****/ #define SNMP_PORT 161 #define SNMP_TRAP_PORT 162 #define SNMP_MAX_LEN 484 #define SNMP_VERSION_1 0 #define GET_REQ_MSG (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0) #define GETNEXT_REQ_MSG (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1) #define GET_RSP_MSG (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2) #define SET_REQ_MSG (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3) #define TRP_REQ_MSG (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4) #define SNMP_ERR_NOERROR (0x0) #define SNMP_ERR_TOOBIG (0x1) #define SNMP_ERR_NOSUCHNAME (0x2) #define SNMP_ERR_BADVALUE (0x3) #define SNMP_ERR_READONLY (0x4) #define SNMP_ERR_GENERR (0x5) #define SNMP_ERR_AUTHORIZATIONERROR (0x10) #define SNMP_TRAP_COLDSTART (0x0) #define SNMP_TRAP_WARMSTART (0x1) #define SNMP_TRAP_LINKDOWN (0x2) #define SNMP_TRAP_LINKUP (0x3) #define SNMP_TRAP_AUTHFAIL (0x4) #define SNMP_TRAP_EGPNEIGHBORLOSS (0x5) #define SNMP_TRAP_ENTERPRISESPECIFIC (0x6) #endif