#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 "RMGenericControl.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 | GENERICCONTROLNEXTINDEX 1 |
#define | GENERICCONTROLMONITORTYPE 5 |
#define | GENERICMONITORUUID 6 |
#define | GENERICMONITORLOCATION 7 |
#define | GENERICDATACAPTUREUUID 8 |
#define | GENERICMONITORLIFETIME 9 |
#define | GENERICMONITORRATE 10 |
#define | GENERICMONITORMICRORATE 11 |
#define | GENERICTHRESHOLDCONTROLINDEX 12 |
#define | GENERICLEAKYBUCKETCONTROLINDEX 13 |
#define | GENERICCONTROLREFCOUNT 14 |
#define | GENERICCONTROLSTATUS 15 |
Functions | |
void | init_RMGenericControl (void) |
unsigned char * | var_RMGenericControl (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method) |
unsigned char * | var_GenericControlTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method) |
int | write_genericControlMonitorType (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_genericMonitorUUID (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_genericMonitorLocation (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_genericDataCaptureUUID (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_genericMonitorLifeTime (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_genericMonitorRate (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_genericMonitorMicroRate (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_genericThresholdControlIndex (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_genericLeakyBucketControlIndex (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_genericControlStatus (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 | RMGenericControl_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,3,1 } |
variable4 | RMGenericControl_variables [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 95 of file RMGenericControl.c. References RMGenericControl_variables, and RMGenericControl_variables_oid. Referenced by main. |
|
|
Definition at line 120 of file RMGenericControl.c. References GENERICCONTROL, and getNewId. |
|
Definition at line 317 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_MONITORTYPE, getInteger32, header_writeGeneric, RMGenericControl_variables_oid, and setInteger32. Referenced by var_GenericControlTable. |
|
Definition at line 1109 of file RMGenericControl.c. References ACTIVE, CREATEANDGO, CREATEANDWAIT, deleteEntry, DESTROY, GENERICCONTROL, GENERICCONTROL_STATUS, getInteger32, header_writeGeneric, newEntry, NOTINSERVICE, NOTREADY, RMGenericControl_variables_oid, and setInteger32. Referenced by var_GenericControlTable. |
|
Definition at line 581 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_DATACAPTURE, getUUIDString, header_writeGeneric, RMGenericControl_variables_oid, and setUUIDString. Referenced by var_GenericControlTable. |
|
Definition at line 1022 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_LEAKYBUCKETID, getUnsigned, header_writeGeneric, RMGenericControl_variables_oid, and setUnsigned. Referenced by var_GenericControlTable. |
|
Definition at line 669 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_MONITORLIFE, getUnsigned, header_writeGeneric, RMGenericControl_variables_oid, and setUnsigned. Referenced by var_GenericControlTable. |
|
Definition at line 492 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_MONITORLOCATION, getInteger32, header_writeGeneric, RMGenericControl_variables_oid, and setInteger32. Referenced by var_GenericControlTable. |
|
Definition at line 845 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_MONITORMICRORATE, getUnsigned, header_writeGeneric, RMGenericControl_variables_oid, and setUnsigned. Referenced by var_GenericControlTable. |
|
Definition at line 757 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_MONITORRATE, getUnsigned, header_writeGeneric, RMGenericControl_variables_oid, and setUnsigned. Referenced by var_GenericControlTable. |
|
Definition at line 404 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_MONITORUUID, getUUIDString, header_writeGeneric, RMGenericControl_variables_oid, and setUUIDString. Referenced by var_GenericControlTable. |
|
Definition at line 934 of file RMGenericControl.c. References GENERICCONTROL, GENERICCONTROL_THRESHOLDID, getUnsigned, header_writeGeneric, RMGenericControl_variables_oid, and setUnsigned. Referenced by var_GenericControlTable. |
|
Initial value: { #define GENERICCONTROLNEXTINDEX { GENERICCONTROLNEXTINDEX, ASN_UNSIGNED , RONLY , var_RMGenericControl, 1, { 1 } }, #define GENERICCONTROLMONITORTYPE { GENERICCONTROLMONITORTYPE, ASN_INTEGER , RWRITE, var_GenericControlTable, 3, { 2,1,2 } }, #define GENERICMONITORUUID { GENERICMONITORUUID , ASN_OCTET_STR , RWRITE, var_GenericControlTable, 3, { 2,1,3 } }, #define GENERICMONITORLOCATION { GENERICMONITORLOCATION, ASN_INTEGER , RWRITE, var_GenericControlTable, 3, { 2,1,4 } }, #define GENERICDATACAPTUREUUID { GENERICDATACAPTUREUUID, ASN_OCTET_STR , RWRITE, var_GenericControlTable, 3, { 2,1,5 } }, #define GENERICMONITORLIFETIME { GENERICMONITORLIFETIME, ASN_TIMETICKS , RWRITE, var_GenericControlTable, 3, { 2,1,6 } }, #define GENERICMONITORRATE { GENERICMONITORRATE , ASN_TIMETICKS , RWRITE, var_GenericControlTable, 3, { 2,1,7 } }, #define GENERICMONITORMICRORATE { GENERICMONITORMICRORATE, ASN_UNSIGNED , RWRITE, var_GenericControlTable, 3, { 2,1,8 } }, #define GENERICTHRESHOLDCONTROLINDEX { GENERICTHRESHOLDCONTROLINDEX, ASN_UNSIGNED , RWRITE, var_GenericControlTable, 3, { 2,1,9 } }, #define GENERICLEAKYBUCKETCONTROLINDEX { GENERICLEAKYBUCKETCONTROLINDEX, ASN_UNSIGNED , RWRITE, var_GenericControlTable, 3, { 2,1,10 } }, #define GENERICCONTROLREFCOUNT { GENERICCONTROLREFCOUNT, ASN_INTEGER , RONLY , var_GenericControlTable, 3, { 2,1,11 } }, #define GENERICCONTROLSTATUS { GENERICCONTROLSTATUS, ASN_INTEGER , RWRITE, var_GenericControlTable, 3, { 2,1,12 } }, } Definition at line 59 of file RMGenericControl.c. Referenced by init_RMGenericControl. |
|