/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PDU_H
#define _PDU_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* SNMP PDU variable list
*/
typedef struct pdu_varlist {
union {
int *iptr;
} val;
/*
*/
typedef struct snmp_pdu {
int version;
int command;
int reqid;
} snmp_pdu_t;
/*
* Supported SNMP versions
*/
#define SNMP_VERSION_1 0
/*
* Community strings for supported PDUs
*/
/*
* PDU types (not all are supported)
*/
/*
* Exception values (not all are supported)
*/
/*
* Error codes (not all are supported)
*/
#define SNMP_ERR_NOERROR (0)
/*
* Default values
*/
#define SNMP_DEF_NON_REPEATERS 0
/*
* Exported interfaces used by other parts of snmplib
*/
snmp_pdu_t *snmp_create_pdu(int, int, char *, int, int);
int snmp_make_packet(snmp_pdu_t *);
void snmp_free_pdu(snmp_pdu_t *);
/*
* Imported from elsewhere
*/
int snmp_get_reqid(void);
#ifdef __cplusplus
}
#endif
#endif /* _PDU_H */