|
- pdu
- This output parameter is a pointer to the variable where the address
of the SnmpPDU structure that is created is stored. This parameter
is required.
- snmpSession
- This input parameter is the address of the SNMP session for which
the SNMP PDU needs to be built. This parameter is the output parameter
of the snmpBuildSession() function and is required.
- pduType
- This input parameter specifies the type of the PDU. This parameter
is required. The valid values are:
- SNMP_PDU_NULL
- If used, the RFC-defined default PDU type SNMP_PDU_GETNEXT is
built and returned
- SNMP_PDU_GET
- SNMP_PDU_GETNEXT
- SNMP_PDU_SET
- SNMP_PDU_GETBULK
- varbinds
- This input parameter is a pointer to the array of VarBind structures
built using the snmpCreateVarBinds() and snmpAddVarBind() functions.
This parameter is required.
- non_repeaters
- This input parameter is the number of non-repeaters for an SNMP_PDU_GETBULK
request. This parameter is required, but is ignored if the pduType value is not SNMP_PDU_GETBULK.
- max_repetitions
- This input parameter specifies the maximum number of repetitions
for an SNMP_PDU_GETBULK request. This parameter is required, but
is ignored if the pduType value is not SNMP_PDU_GETBULK
- req_id
- This input parameter is a pointer to the request ID to be stored
in the SnmpPDU field. If the value of this parameter is greater
than or equal to 0, then this value is used. Otherwise, a random request
ID is generated and stored in the SnmpPDU field.
|