Regarding DateAndTime

Cheng Chaoting chengchaoting____huawei.com
Tue May 13 11:47:27 CEST 2003


Hi,

One mib leaf,which is DateAndTime type,after compiling,the generated code is:

int imap_northbound_common_hwIMAPNorthboundCommonSystemLable::prepare_set_request(Request* req, int& ind)
{
 int status;
 if ((status = DateAndTime::prepare_set_request(req, ind)) !=
     SNMP_ERROR_SUCCESS) return status;

 Vb vb(req->get_value(ind));
 OctetStr v;
 vb.get_value(v);
 if (!(((v.len() >= 8) && (v.len() <= 8))))
   return SNMP_ERROR_WRONG_LENGTH;
 //--AgentGen BEGIN=hwIMAPNorthboundCommonSystemLable::prepare_set_request
 //--AgentGen END
 return SNMP_ERROR_SUCCESS;
}

For this code line:
if (!(((v.len() >= 8) && (v.len() <= 8))))//only 8 is allowed,but 11 should be allowed too.

I guess it should be:
if(!(v.len() ==8 || v.len()==11))

Right?

TIA

Best regards,
Cheng Chaoting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20030513/54d58e79/attachment.htm 


More information about the AGENTPP mailing list