| Return Type | Method Summary |
| CHAR | AddEntryToLCDTable(Vector *vect, void *ptr)
Add an Entry to LCD table. |
| SnmpPdu* | AllocateAndInitSnmpPdu()
Allocates an instance to SnmpPdu and initialize all fields as NULL. |
| CHAR | CheckAndInvokeRegisteredSnmpListener()
This method will check the request queue size, wait for threads to become idle, invoke registered listener and start receiving the request. |
| CHAR | CheckOidAccess(U_CHAR command, U_CHAR access, U_CHAR version)
Check the corresponding access type of the given oid for its given command type. |
| SnmpPdu* | CloneSnmpPdu(SnmpPdu *pdu)
This function create a new pdu reference and all the info of the received pdu pointer to the newly create one. |
| CHAR | CloneTdInfo(TransportDomainInfo **destTdInfo, TransportDomainInfo *srcTdInfo)
|
| CHAR | CompareDigest(U_CHAR *str1, INT32 len1, U_CHAR *str2, INT32 len2)
Compare each element of the str1 with corresponding element of the str2. |
| INT32 | ConvertToIpAddFromString(U_CHAR **dest, CHAR *src, INT32 srcLen)
Converts the given string into ipAddress. |
| CHAR | CreateRcvdInfo(ReceivedInfo **rcvdInfoPtr, TransportDomainInfo *tdInfo, U_CHAR *inPacket, INT32 inPacketLength)
It will make a copy of all the received information. |
| CHAR | CreateSnmpMsgForPdu(U_CHAR *outPkt, INT32 *outPktLen, SnmpPdu *pdu, UsmSecParamsReference *usmSecParams) or
CHAR CreateSnmpMsgForPdu(U_CHAR *outPkt, INT32 *outPktLen, SnmpPdu *pdu)
It will create a snmp message for the given pdu. |
| SnmpPdu* | CreateSnmpPdu(LONG version, CHAR *community, U_CHAR command, LONG reqId, LONG errStatus, LONG errIndex, Vector *varBindVect)
This function will create the SnmpPdu with the values such as version, community, command, reqId, error status, error index as arguments. |
| U_CHAR* | DecodeAsnSyntaxValue(U_CHAR varValType, U_CHAR *varVal, INT32 *varValLen)
Decodes the give varbind value according to BER standard. |
| OID* | DecodeOID(CHAR *data, INT32 dataLen, INT32 *oidLen)
Convert the character stream of oid representation to OID array using BER decoding rule. |
| void | DeleteLCDVector(Vector *vect, void *lcdEntryPtr, CHAR status)
It will delete the element from lcdVector. |
| CHAR | FindNextSubId(TreeCell *tempCell, OID *varName, INT32 *varNameLen, INT16 columnIdx)
It will find out the next subid of the given listener if it is available. |
| void | FreeHolderVector(Vector *vect)
Free the allocated resource of the holder Vector. |
| void | FreeInformVector()
It will free the inform Vector. |
| void | FreeProxyVector(Vector *vect)
Free the allocated resource of the proxy Vector. |
| void | FreeSNMPResources()
It will free the memory allocated by the run time agent for SNMP adapter. |
| void | FreeSnmpPdu(SnmpPdu *pdu)
Free the allocated resource of SnmpPdu. |
| void | FreeSnmpPduResources(SnmpPdu *pdu)
Free all the allocated resources of SnmpPdu. |
| void | FreeSnmpThreadResource()
It will free the resources related snmp thread. |
| void | FreeSnmpTransportDominInfo()
It will free the snmp transport domain information. |
| INT16 | GetAttributeIndex(TreeCell *cell, OID *rcvdOid)
It will find out the exact position/order of the column/scalar from the subId list. |
| INT16 | GetColumnIndex(OID column, OID *subIdList, U_INT16 subIdListLen)
Search the given column in the subid list, if it is there return corresponding index in the subid list. |
| void | GetNOid(OID *destOid, OID *srcOid, INT32 startIndex, INT32 len)
Get each oid from the srcOid and copy to destOid from startIndex to startIndex + len. |
| CHAR | GetNextOid(TreeCell *tempCell, OID *oid, INT32 *len)
Compares the received oid from the varbind with oid (oid of tree cell + each Entry of subid list) then return the next greater oid. |
| void | IncrementSnmpInMessageCntrs(U_CHAR pduType, U_CHAR afterProcess, SnmpPdu *pdu)
Depending upon the incoming message type the corresponding counter will be incremented. |
| void | IncrementSnmpOutErrMessageCntrs(LONG errorStatus)
Depending upon the error status of the outgoing message the corresponding counter will be incremented. |
| void | MapFamilyTypeToInteger(CHAR *familyTypeAsString, INT32 *familyTypeAsInt)
|
| void | MapFamilyTypeToString(INT32 familyTypeAsInt, CHAR *familyTypeAsString)
|
| void | MapSecLevelToInteger(CHAR *secLevelAsString, INT32 *secLevelAsInt)
|
| void | MapSecLevelToString(INT32 secLevelAsInt, CHAR *secLevelAsString)
|
| void | MapSecModelToInteger(CHAR *secModelAsString, INT32 *secModelAsInt)
|
| void | MapSecModelToString(INT32 secModelAsInt, CHAR *secModelAsString)
|
| void | MapSnmpVersionToInteger(CHAR *snmpVersionAsString, INT32 *snmpVersionAsInt)
After reading from text file corresponding errStatus macro will be mapped. |
| void | MapSnmpVersionToString(U_INT32 snmpVersionAsInt, CHAR *snmpVersionAsString)
|
| void | MapStorageTypeToIneger(CHAR *storageTypeAsString, INT32 *storageTypeAsInt)
|
| void | MapStorageTypeToString(INT32 storageTypeAsInt, CHAR *storageTypeAsString)
|
| LONG | MapToSNMPv1Error(LONG errStatus)
It will convert the given snmp error into SNMPv1 Error if needed. |
| void | MapTrapTypeToInteger(CHAR *typeAsString, INT32 *typeAsInt)
After reading from the text file corresponding value will be mapped. |
| void | MapTrapTypeToString(INT32 typeAsInt, CHAR *typeAsString)
Before writing in the text file corresponding macro will be mapped. |
| U_CHAR* | ParseSnmpMsgLen(U_CHAR *pkt, U_LONG *length)
|
| CHAR | RegisterListenerBeforeRestartSnmpService(void *funPtr)
This method will register a method which will be excecuted before restarting the snmp service. |
| U_CHAR* | RemoveSnmpPktHeaderLength(U_CHAR *pkt)
It will skip the header length and return the pointer on which original data starts. |
| CHAR | RestartSnmpAgentService(LONG port, CHAR *host)
This method will stop the already running service and restart the service for specified port. |
| SnmpPdu* | SendAndReceiveSnmpPdu(SnmpPdu *pdu, CHAR *remoteHost, INT32 remotePort, CHAR *status, UsmSecParamsReference *usmSecParams) or
SnmpPdu *SendAndReceiveSnmpPdu(SnmpPdu *pdu, CHAR *remoteHost, INT32 remotePort, CHAR *status)
This function will first creates a tdInfo with the remote host and remote port values and then open an Snmp session. |
| U_CHAR | SendPduAndWaitForTdInfoResp(TransportDomainInfo *tdInfo, SnmpPdu *trapPdu, UsmSecParamsReference *usmSecParams) or
U_CHAR SendPduAndWaitForTdInfoResp(TransportDomainInfo *tdInfo, SnmpPdu *trapPdu)
This function will send the created pdu to the master agent and waits for the response and returns SUCCESS or FAILURE depends on the response received from the master agent. |
| CHAR | SendSnmpPdu(TransportDomainInfo *tdInfo, SnmpPdu *trapPdu, UsmSecParamsReference *usmSecParams) or
CHAR SendSnmpPdu(TransportDomainInfo *tdInfo, SnmpPdu *trapPdu)
It will first create the Snmp message for the specified pdu and the transport domain values and finally send the Snmp message to the manager. |
| CHAR | SplitIndexValue(U_CHAR *indexDataTypes, INT32 indexDataTypeLen, CHAR impliedIndexFlag, OID *inst, INT32 instLen, U_CHAR **indexes, INT32 *indexesLen, INT32 *indexLen, U_CHAR *errorStatus)
It will split the given instance value into number of index and store then in "indexes" variable, the corresponding length of each index will be inindexesLen variable. |
| CHAR | StartReceivingSnmpRequest()
This method will set the flag true which will start receiving the request by the snmp service. |
| CHAR | StartSnmpAgentService(LONG port, CHAR *host)
This method will start the snmp service at the specified port. |
| CHAR | StopReceivingSnmpRequest()
This method will set the flag false which will stop receiving the request by the snmp service. |
| CHAR | StopSnmpAgentService()
This method will stop the snmp service. |
| CHAR | ValidateOid(OID * src, INT32 len)
Check the received Oid for Validation. |
| CHAR | WaitForSnmpThreadsToIdle(ThreadInfo *threadPool, U_INT16 poolSize)
This method will wait till all threads become wating state. |
| Method Details |