#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 "RMLeakyBucketConfig.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 | LEAKYBUCKETCONFIGNEXTINDEX 1 |
#define | LEAKYBUCKETSIZEVALUELOW 5 |
#define | LEAKYBUCKETSIZEVALUEHIGH 6 |
#define | LEAKYBUCKETFILLVALUELOW 7 |
#define | LEAKYBUCKETFILLVALUEHIGH 8 |
#define | LEAKYBUCKETEVENTSEVERITY 9 |
#define | LEAKYBUCKETCONFIGREFCOUNT 10 |
#define | LEAKYBUCKETCONFIGSTATUS 11 |
Functions | |
void | init_RMLeakyBucketConfig (void) |
unsigned char * | var_RMLeakyBucketConfig (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method) |
unsigned char * | var_LeakyBucketConfigTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method) |
int | write_leakyBucketSizeValueLow (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_leakyBucketSizeValueHigh (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_leakyBucketFillValueLow (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_leakyBucketFillValueHigh (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_leakyBucketEventSeverity (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_leakyBucketConfigStatus (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 | RMLeakyBucketConfig_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,2,4 } |
variable4 | RMLeakyBucketConfig_variables [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 86 of file RMLeakyBucketConfig.c. References RMLeakyBucketConfig_variables, and RMLeakyBucketConfig_variables_oid. Referenced by main. |
|
|
Definition at line 111 of file RMLeakyBucketConfig.c. References getNewId, and LEAKYBUCKETCONFIG. |
|
Definition at line 717 of file RMLeakyBucketConfig.c. References ACTIVE, CREATEANDGO, CREATEANDWAIT, deleteEntry, DESTROY, getInteger32, header_writeGeneric, LEAKYBUCKETCONFIG, LEAKYBUCKETCONFIG_STATUS, newEntry, NOTINSERVICE, NOTREADY, RMLeakyBucketConfig_variables_oid, and setInteger32. Referenced by var_LeakyBucketConfigTable. |
|
Definition at line 628 of file RMLeakyBucketConfig.c. References getInteger32, header_writeGeneric, LEAKYBUCKETCONFIG, LEAKYBUCKETCONFIG_EVENTSEVERITY, RMLeakyBucketConfig_variables_oid, and setInteger32. Referenced by var_LeakyBucketConfigTable. |
|
Definition at line 535 of file RMLeakyBucketConfig.c. References getUnsigned64, header_writeGeneric, LEAKYBUCKETCONFIG, LEAKYBUCKETCONFIG_FILLVALUE64, RMLeakyBucketConfig_variables_oid, setHigh32, and setUnsigned64. Referenced by var_LeakyBucketConfigTable. |
|
Definition at line 446 of file RMLeakyBucketConfig.c. References getUnsigned, header_writeGeneric, LEAKYBUCKETCONFIG, LEAKYBUCKETCONFIG_FILLVALUE32, RMLeakyBucketConfig_variables_oid, and setUnsigned. Referenced by var_LeakyBucketConfigTable. |
|
Definition at line 354 of file RMLeakyBucketConfig.c. References getUnsigned64, header_writeGeneric, LEAKYBUCKETCONFIG, LEAKYBUCKETCONFIG_BUCKETSIZE64, RMLeakyBucketConfig_variables_oid, setHigh32, and setUnsigned64. Referenced by var_LeakyBucketConfigTable. |
|
Definition at line 265 of file RMLeakyBucketConfig.c. References getUnsigned, header_writeGeneric, LEAKYBUCKETCONFIG, LEAKYBUCKETCONFIG_BUCKETSIZE32, RMLeakyBucketConfig_variables_oid, and setUnsigned. Referenced by var_LeakyBucketConfigTable. |
|
Initial value: { #define LEAKYBUCKETCONFIGNEXTINDEX { LEAKYBUCKETCONFIGNEXTINDEX, ASN_UNSIGNED , RONLY , var_RMLeakyBucketConfig, 1, { 1 } }, #define LEAKYBUCKETSIZEVALUELOW { LEAKYBUCKETSIZEVALUELOW, ASN_UNSIGNED , RWRITE, var_LeakyBucketConfigTable, 3, { 2,1,2 } }, #define LEAKYBUCKETSIZEVALUEHIGH { LEAKYBUCKETSIZEVALUEHIGH, ASN_UNSIGNED , RWRITE, var_LeakyBucketConfigTable, 3, { 2,1,3 } }, #define LEAKYBUCKETFILLVALUELOW { LEAKYBUCKETFILLVALUELOW, ASN_UNSIGNED , RWRITE, var_LeakyBucketConfigTable, 3, { 2,1,4 } }, #define LEAKYBUCKETFILLVALUEHIGH { LEAKYBUCKETFILLVALUEHIGH, ASN_UNSIGNED , RWRITE, var_LeakyBucketConfigTable, 3, { 2,1,5 } }, #define LEAKYBUCKETEVENTSEVERITY { LEAKYBUCKETEVENTSEVERITY, ASN_INTEGER , RWRITE, var_LeakyBucketConfigTable, 3, { 2,1,6 } }, #define LEAKYBUCKETCONFIGREFCOUNT { LEAKYBUCKETCONFIGREFCOUNT, ASN_INTEGER , RONLY , var_LeakyBucketConfigTable, 3, { 2,1,7 } }, #define LEAKYBUCKETCONFIGSTATUS { LEAKYBUCKETCONFIGSTATUS, ASN_INTEGER , RWRITE, var_LeakyBucketConfigTable, 3, { 2,1,8 } }, } Definition at line 58 of file RMLeakyBucketConfig.c. Referenced by init_RMLeakyBucketConfig. |
|
Definition at line 48 of file RMLeakyBucketConfig.c. Referenced by init_RMLeakyBucketConfig, write_leakyBucketConfigStatus, write_leakyBucketEventSeverity, write_leakyBucketFillValueHigh, write_leakyBucketFillValueLow, write_leakyBucketSizeValueHigh, and write_leakyBucketSizeValueLow. |