1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Copyright 2001 Sun Microsystems, Inc.  All Rights Reserved.
23 * Use is subject to license terms.
24 */
25
26#ifndef _SNMP_H_
27#define _SNMP_H_
28
29#pragma ident	"%Z%%M%	%I%	%E% SMI"
30
31#include "asn1.h"
32
33
34/***** GLOBAL CONSTANTS *****/
35
36#define SNMP_PORT	    161
37#define SNMP_TRAP_PORT	    162
38
39#define SNMP_MAX_LEN	    484
40
41#define SNMP_VERSION_1	    0
42
43#define GET_REQ_MSG	    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)
44#define GETNEXT_REQ_MSG	    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)
45#define GET_RSP_MSG	    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)
46#define SET_REQ_MSG	    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3)
47#define TRP_REQ_MSG	    (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4)
48
49#define SNMP_ERR_NOERROR    (0x0)
50#define SNMP_ERR_TOOBIG	    (0x1)
51#define SNMP_ERR_NOSUCHNAME (0x2)
52#define SNMP_ERR_BADVALUE   (0x3)
53#define SNMP_ERR_READONLY   (0x4)
54#define SNMP_ERR_GENERR	    (0x5)
55#define	SNMP_ERR_AUTHORIZATIONERROR	(0x10)
56
57#define SNMP_TRAP_COLDSTART		(0x0)
58#define SNMP_TRAP_WARMSTART		(0x1)
59#define SNMP_TRAP_LINKDOWN		(0x2)
60#define SNMP_TRAP_LINKUP		(0x3)
61#define SNMP_TRAP_AUTHFAIL		(0x4)
62#define SNMP_TRAP_EGPNEIGHBORLOSS	(0x5)
63#define SNMP_TRAP_ENTERPRISESPECIFIC	(0x6)
64
65
66#endif
67
68