DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T m

⟦595d8f4cb⟧ TextFile

    Length: 2717 (0xa9d)
    Types: TextFile
    Names: »mib.h«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/snmp/mib.h« 

TextFile

/* mib.h - MIB realization */

/* 
 * $Header: /f/osi/snmp/RCS/mib.h,v 7.1 90/01/11 18:34:17 mrose Exp $
 *
 * Contributed by NYSERNet Inc.  This work was partially supported by the
 * U.S. Defense Advanced Research Projects Agency and the Rome Air Development
 * Center of the U.S. Air Force Systems Command under contract number
 * F30602-88-C-0016.
 *
 *
 * $Log:	mib.h,v $
 * Revision 7.1  90/01/11  18:34:17  mrose
 * real-sync
 * 
 * Revision 7.0  89/11/23  22:23:13  mrose
 * Release 6.0
 * 
 */

/*
 *				  NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


#include <nlist.h>
#include "SNMP-types.h"
#include "objects.h"
#include "logger.h"

/* \f

 */

extern struct nlist nl[];
#define	N_ARPTAB	0
#define	N_ARPTAB_SIZE	1
#define	N_BOOTTIME	2
#define	N_ICMPSTAT	3
#define	N_IFNET		4
#define	N_IPFORWARDING	5
#define	N_IPSTAT	6
#define	N_RTHASHSIZE	7
#define	N_RTHOST	8
#define	N_RTNET		9
#define	N_TCB		10
#define	N_TCPSTAT	11
#define	N_UDB		12
#define	N_UDPSTAT	13
#define	N_MBSTAT	14
#ifdef	BSD44
#define	N_RADIX_NODE_HEAD 15
#define	N_ISO_SYSTYPE	16
#define	N_CLNP_STAT	17
#define	N_ISO_SNPAC_SIZE 18
#define	N_ISO_SNPAC	19
#define	N_ESIS_STAT	20
#endif


int	readmib (), checkmib (), set_variable ();
int	getkmem ();

int	o_generic ();

int	o_number ();
#define	o_integer(oi,v,number)	o_number ((oi), (v), (integer) (number))

int	o_string ();

int	o_specific ();
#define	o_ipaddr(oi,v,value)	o_specific ((oi), (v), (caddr_t) (value))
#ifdef	BSD44
#define	o_clnpaddr(oi,v,value)	o_specific ((oi), (v), (caddr_t) (value))
#endif

OID	oid_extend ();


int	ipaddr2oid ();

int	mediaddr2oid ();
#ifdef	BSD44
#define	clnpaddr2oid(ip,addr) \
	mediaddr2oid ((ip), \
		      (u_char *) (addr) -> isoa_genaddr, \
		      (int) (addr) -> isoa_len, 1)
#endif

/* \f

 */

extern  int	nd;
extern	int	quantum;


struct snmpstat {
    integer	s_inpkts;
    integer	s_outpkts;
    integer	s_badversions;
    integer	s_badcommunitynames;
    integer	s_badcommunityuses;
    integer	s_asnparseerrs;
    integer	s_badtypes;
    integer	s_totalreqvars;
    integer	s_totalsetvars;
    integer	s_ingetrequests;
    integer	s_ingetnexts;
    integer	s_insetrequests;
    integer	s_outgetresponses;
    integer	s_outtraps;
    integer	s_toobigs;
    integer	s_nosuchnames;
    integer	s_badvalues;
    integer	s_readonlys;
    integer	s_generrs;
    integer	s_enableauthtraps;
#define	TRAPS_ENABLED	1			/* snmpEnableAuthTraps */
#define	TRAPS_DISABLED	2			/*   .. */
};

extern struct snmpstat snmpstat;


void	adios (), advise ();