persistentAdapter->setVariable("V20", "") ? IGNORE;
Add similar statements upto V30 just below it.
persistentAdapter->setVariable("V21", "") ? IGNORE;
persistentAdapter->setVariable("V22", "") ? IGNORE;
....................................
persistentAdapter->setVariable("V30", "") ? IGNORE;
persistentAdapter->setVariable("OID20", "") ? IGNORE;
Follow similar steps as mentioned for VARBIND for OID to add lines to support till OID30.
persistentAdapter->setVariable("OID21", "") ? IGNORE;
....................................
persistentAdapter->setVariable("OID30", "") ? IGNORE;
if (defined(Varbinds[19])) {
persistentAdapter->setVariable("V20", Varbinds[19]) ? IGNORE;
persistentAdapter->setVariable("OID20", Oids[19]) ? IGNORE;
}
Add similar lines just below upto 30.
if (defined(Varbinds[20])) {
persistentAdapter->setVariable("V21", Varbinds[20]) ? IGNORE;
persistentAdapter->setVariable("OID21", Oids[20]) ? IGNORE;
}
.....................................................
if (defined(Varbinds[29])) {
persistentAdapter->setVariable("V30", Varbinds[29]) ? IGNORE;
persistentAdapter->setVariable("OID30", Oids[29]) ? IGNORE;
}