Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

RMLeakyBucketControl.c File Reference

#include <netinet/in.h>
#include <ucd-snmp/ucd-snmp-config.h>
#include <ucd-snmp/ucd-snmp-includes.h>
#include <ucd-snmp/ucd-snmp-agent-includes.h>
#include "RMLeakyBucketControl.h"
#include "rmClient.h"
#include "utility.h"
#include <stdlib.h>
#include <string.h>
#include <ucd-snmp/util_funcs.h>

Go to the source code of this file.

Defines

#define LEAKYBUCKETCONTROLNEXTINDEX   1
#define LEAKYBUCKETLOGGINGRATE   5
#define LEAKYBUCKETCONTROLREFCOUNT   6
#define LEAKYBUCKETCONTROLSTATUS   7

Functions

void init_RMLeakyBucketControl (void)
unsigned char * var_RMLeakyBucketControl (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_LeakyBucketControlTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
int write_leakyBucketLoggingRate (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_leakyBucketControlStatus (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)

Variables

oid RMLeakyBucketControl_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,3,4 }
variable4 RMLeakyBucketControl_variables []


Define Documentation

#define LEAKYBUCKETCONTROLNEXTINDEX   1
 

#define LEAKYBUCKETCONTROLREFCOUNT   6
 

#define LEAKYBUCKETCONTROLSTATUS   7
 

#define LEAKYBUCKETLOGGINGRATE   5
 


Function Documentation

void init_RMLeakyBucketControl void   
 

Definition at line 78 of file RMLeakyBucketControl.c.

References RMLeakyBucketControl_variables, and RMLeakyBucketControl_variables_oid.

Referenced by main.

unsigned char* var_LeakyBucketControlTable struct variable *    vp,
oid *    name,
size_t *    length,
int    exact,
size_t *    var_len,
WriteMethod **    write_method
 

Definition at line 145 of file RMLeakyBucketControl.c.

References getInteger32, header_MyGeneric, LEAKYBUCKETCONTROL, LEAKYBUCKETCONTROL_LOGGINGRATE, LEAKYBUCKETCONTROL_REFCOUNT, LEAKYBUCKETCONTROL_STATUS, write_leakyBucketControlStatus, and write_leakyBucketLoggingRate.

unsigned char* var_RMLeakyBucketControl struct variable *    vp,
oid *    name,
size_t *    length,
int    exact,
size_t *    var_len,
WriteMethod **    write_method
 

Definition at line 103 of file RMLeakyBucketControl.c.

References getNewId, and LEAKYBUCKETCONTROL.

int write_leakyBucketControlStatus int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 303 of file RMLeakyBucketControl.c.

References ACTIVE, CREATEANDGO, CREATEANDWAIT, deleteEntry, DESTROY, getInteger32, header_writeGeneric, LEAKYBUCKETCONTROL, LEAKYBUCKETCONTROL_STATUS, newEntry, NOTINSERVICE, NOTREADY, RMLeakyBucketControl_variables_oid, and setInteger32.

Referenced by var_LeakyBucketControlTable.

int write_leakyBucketLoggingRate int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 214 of file RMLeakyBucketControl.c.

References getUnsigned, header_writeGeneric, LEAKYBUCKETCONTROL, LEAKYBUCKETCONTROL_LOGGINGRATE, RMLeakyBucketControl_variables_oid, and setUnsigned.

Referenced by var_LeakyBucketControlTable.


Variable Documentation

struct variable4 RMLeakyBucketControl_variables[]
 

Initial value:

 {

#define LEAKYBUCKETCONTROLNEXTINDEX
  { LEAKYBUCKETCONTROLNEXTINDEX, ASN_UNSIGNED  , RONLY , var_RMLeakyBucketControl, 1, { 1 } },
#define LEAKYBUCKETLOGGINGRATE
  { LEAKYBUCKETLOGGINGRATE, ASN_TIMETICKS , RWRITE, var_LeakyBucketControlTable, 3, { 2,1,2 } },
#define LEAKYBUCKETCONTROLREFCOUNT
  { LEAKYBUCKETCONTROLREFCOUNT, ASN_INTEGER   , RONLY , var_LeakyBucketControlTable, 3, { 2,1,3 } },
#define LEAKYBUCKETCONTROLSTATUS
  { LEAKYBUCKETCONTROLSTATUS, ASN_INTEGER   , RWRITE, var_LeakyBucketControlTable, 3, { 2,1,4 } },

}

Definition at line 58 of file RMLeakyBucketControl.c.

Referenced by init_RMLeakyBucketControl.

oid RMLeakyBucketControl_variables_oid[] = { 1,3,6,1,4,1,343,2,15,1,2,3,4 }
 

Definition at line 48 of file RMLeakyBucketControl.c.

Referenced by init_RMLeakyBucketControl, write_leakyBucketControlStatus, and write_leakyBucketLoggingRate.


Generated on Tue Sep 10 16:46:34 2002 for ResourceMonitorSNMPSubagent by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002