[AGENT++] problem with SYNTAX BITS

Jacquemin, Jean-Philippe jean-philippe.jacquemin at barco.com
Mon Aug 31 14:35:37 CEST 2009


Hi All,

Has anyone experienced problems with the bitfields ?

In my MIB file I use the syntax:

SYNTAX BITS
{
  noError(0),
  error1(1),
  error2(2),
  error3(3),
  error4(4)
}

but instead of reading it as a bitfield, the MIB-Browser I use (from
MG-Soft) interpretes it as an Integer. Combination of error is therefore
not possbile.

In my SnmpAgent I only use 2 classes : SnmpInt32 and OctetStr.

Could it be that because all my numerical leaves are Integers that this
bitfield is intepreted only as an integer ??


Thanks in advance,

Jean-Philippe


DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.




More information about the AGENTPP mailing list