Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
perfect, thank you! Boris 2010/10/11 Dave Shield > On 11 October 2010 13:51, Boris Zweimueller > wrote: > > the generated c code for this object ist: > > > > /** Check the ranges of the passed value for legality */ > > if ( !(*val >= 54 && *val <= 54) || !(*val >= 65 && *val <= 65) ) >

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Dave Shield
On 11 October 2010 13:51, Boris Zweimueller wrote: > the generated c code for this object ist: > >     /** Check the ranges of the passed value for legality */ >     if ( !(*val >= 54 && *val <= 54) || !(*val >= 65 && *val <= 65) ) >     { >         return SNMP_ERR_WRONGVALUE; >     } > > which yi

mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
Hi all, in our MIB we have the following definitions (only the important parts are shown): UsnFunctionGroup ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "xxx" SYNTAX INTEGE