/*							-- DO NOT EDIT --
 * This file has been generated by smidump
 * version 0.3.1 for the scli package.
 *
 * Derived from UDP-MIB:
 *   The MIB module for managing UDP implementations.
 *
 * Revision 1994-11-01 00:00:
 *   [Revision added by libsmi due to a LAST-UPDATED clause.]
 *
 * Revision 1991-03-31 00:00:
 *   The initial revision of this MIB module was part of MIB-
 *   II.
 *
 * $Id: udp-mib.h,v 1.11 2002/03/26 16:26:27 schoenw Exp $
 */

#ifndef _UDP_MIB_H_
#define _UDP_MIB_H_

#include "g_snmp.h"

/*
 * C type definitions for UDP-MIB::udp.
 */

#define UDP_MIB_UDPINDATAGRAMS  (1 << 0) 
#define UDP_MIB_UDPNOPORTS      (1 << 1) 
#define UDP_MIB_UDPINERRORS     (1 << 2) 
#define UDP_MIB_UDPOUTDATAGRAMS (1 << 3) 

typedef struct {
    guint32  *udpInDatagrams;
    guint32  *udpNoPorts;
    guint32  *udpInErrors;
    guint32  *udpOutDatagrams;
} udp_mib_udp_t;

extern udp_mib_udp_t *
udp_mib_new_udp(void);

extern void
udp_mib_get_udp(GSnmpSession *s, udp_mib_udp_t **udp, gint mask);

extern void
udp_mib_free_udp(udp_mib_udp_t *udp);

/*
 * C type definitions for UDP-MIB::udpEntry.
 */

#define UDP_MIB_UDPLOCALADDRESS (1 << 0) 
#define UDP_MIB_UDPLOCALPORT    (1 << 1) 

typedef struct {
    guchar   udpLocalAddress[4];
#define UDP_MIB_UDPLOCALADDRESSLENGTH 4
    gint32   udpLocalPort;
} udp_mib_udpEntry_t;

extern void
udp_mib_get_udpTable(GSnmpSession *s, udp_mib_udpEntry_t ***udpEntry, gint mask);

extern void
udp_mib_free_udpTable(udp_mib_udpEntry_t **udpEntry);

extern udp_mib_udpEntry_t *
udp_mib_new_udpEntry(void);

extern void
udp_mib_get_udpEntry(GSnmpSession *s, udp_mib_udpEntry_t **udpEntry, guchar *udpLocalAddress, gint32 udpLocalPort, gint mask);

extern void
udp_mib_free_udpEntry(udp_mib_udpEntry_t *udpEntry);


#endif /* _UDP_MIB_H_ */
